Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunti i sorgenti per Greenleaf Math Library (gfm.dll) git-svn-id: svn://10.65.10.50/trunk@10079 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			27 lines
		
	
	
		
			461 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			461 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| #include <stdio.h>
 | |
| #include "gm.h"
 | |
| void main(void);
 | |
| 
 | |
| void	main()
 | |
| {
 | |
| 	char	*path="tmpfile";
 | |
| 	char	buffer[40];
 | |
| 	FILE	*fil;
 | |
| 	DEC	da, *a=&da;
 | |
| 	
 | |
| 	ConvAsciiToDecimal(a, "3.14159");
 | |
| 	
 | |
| 	dprintf(" dprintf outputs %t\n", a);
 | |
| 
 | |
| 	dsprintf(buffer, "%t", a);
 | |
| 	printf("dsprintf outputs %s\n", buffer);
 | |
| 
 | |
| 	fil = fopen(path, "w");
 | |
| 	dfprintf(fil, "%t", a);
 | |
| 	fclose(fil);
 | |
| 	fil = fopen(path, "r");
 | |
| 	fscanf(fil, "%s", buffer);
 | |
| 	fclose(fil);
 | |
| 	printf("dfprintf outputs %s\n", buffer);
 | |
| }
 |