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
		
			
				
	
	
		
			48 lines
		
	
	
		
			1020 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1020 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/* DEC	*AddIntToDecimal(pDst,pSrc1,l)
 | 
						|
 *
 | 
						|
 * ARGUMENT
 | 
						|
 *	pDst is	a pointer to the destination DEC structure.
 | 
						|
 *	pSrc1 is a ptr to the source1 DEC structure.
 | 
						|
 *	l is the int to	be added to pSrc1
 | 
						|
 *
 | 
						|
 * DESCRIPTION
 | 
						|
 *	Adds the value 'l' to pSrc1 and	puts the result	in dest	DEC structure.
 | 
						|
 *  The	sum is calculated to the maximum possible accuracy.
 | 
						|
 *
 | 
						|
 * SIDE	EFFECTS
 | 
						|
 *	On overflow, the dest value is destroyed.
 | 
						|
 *
 | 
						|
 * RETURNS
 | 
						|
 *	Returns	a pointer to the dest structure	unless overflow,
 | 
						|
 *   when it returns a GM_NULL.	On error, the error
 | 
						|
 *   is	in wGMError, unless an error was already there.
 | 
						|
 *
 | 
						|
 * POSSIBLE ERROR CODES
 | 
						|
 *
 | 
						|
 *	GM_NULLPOINTER
 | 
						|
 *	GM_OVERFLOW
 | 
						|
 *
 | 
						|
 * AUTHOR
 | 
						|
 *  Andy Anderson   08-JUL-1987	 1500
 | 
						|
 *   Copyright (C) 1987-1990 Greenleaf Software	Inc.  All rights reserved.
 | 
						|
 *
 | 
						|
 * MODIFICATIONS
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#include <stdio.h>
 | 
						|
#include "gm.h"
 | 
						|
#include "gmsystem.h"
 | 
						|
 | 
						|
DEC	*AddIntToDecimal(pDst,pSrc1,l)
 | 
						|
DEC	*pDst,*pSrc1;
 | 
						|
int	l;
 | 
						|
{
 | 
						|
	DEC	*t;
 | 
						|
 | 
						|
	_MacStart(GM_ADDID);
 | 
						|
 | 
						|
	t = AddLongToDecimal(pDst,pSrc1,(long) l);
 | 
						|
	_MacRet(t);
 | 
						|
}
 |