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
		
			
				
	
	
		
			41 lines
		
	
	
		
			476 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			476 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| /* void _IncrementUnsArr(a)
 | |
|  *
 | |
|  * ARGUMENT
 | |
|  *      unsigned        a[];
 | |
|  *
 | |
|  * DESCRIPTION
 | |
|  *      Increments the number a (Adds 1 to a).
 | |
|  *
 | |
|  * SIDE EFFECTS
 | |
|  *      None.
 | |
|  *
 | |
|  * RETURNS
 | |
|  *      None (assume no overflow)
 | |
|  *
 | |
|  * AUTHOR
 | |
|  *      Brugnoli Giugno 1992
 | |
|  *
 | |
|  * MODIFICATIONS
 | |
|  *
 | |
|  */
 | |
| 
 | |
| #include <stdio.h>
 | |
| #include "gm.h"
 | |
| #include "gmsystem.h"
 | |
| 
 | |
| 
 | |
| void     _IncrementUnsArr(a)
 | |
| unsigned SHORT        a[];
 | |
| {
 | |
|   int i;
 | |
| 
 | |
|   i=0;
 | |
| 
 | |
|   do
 | |
|     {
 | |
|     a[i]++;
 | |
|     }
 | |
|   while (a[i++]==0);
 | |
| 
 | |
| }
 |