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
		
			
				
	
	
		
			44 lines
		
	
	
		
			718 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			718 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/* DEC	*ZeroDecimal(pSrc1)
 | 
						|
 *
 | 
						|
 * ARGUMENT
 | 
						|
 *	pSrc1 is a ptr to the source1 DEC structure.
 | 
						|
 *
 | 
						|
 * DESCRIPTION
 | 
						|
 *	Zeroes the structure pSrc1.
 | 
						|
 *
 | 
						|
 * SIDE	EFFECTS
 | 
						|
 *	If a NULL ptr is passed, creates zeroed	NULL DEC for caller.
 | 
						|
 *
 | 
						|
 * RETURNS
 | 
						|
 *	Returns	a ptr to the zeroed structure if successful.
 | 
						|
 *   Otherwise returns a GM_NULL.
 | 
						|
 *
 | 
						|
 * POSSIBLE ERROR CODES
 | 
						|
 *	GM_NULLPOINTER
 | 
						|
 *
 | 
						|
 * AUTHOR
 | 
						|
 *  Andy Anderson   13-JAN-1987	 16:20
 | 
						|
 *   Copyright (C) 1987-1990 Greenleaf Software	Inc.  All rights reserved.
 | 
						|
 *
 | 
						|
 * MODIFICATIONS
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#include <stdio.h>
 | 
						|
#include "gm.h"
 | 
						|
#include "gmsystem.h"
 | 
						|
 | 
						|
DEC	*ZeroDecimal(x)
 | 
						|
DEC	*x;
 | 
						|
{
 | 
						|
 | 
						|
	_MacStart(GM_DZERO);
 | 
						|
 | 
						|
	_MacOutVarD(x);
 | 
						|
 | 
						|
	/* Then	zero the structure */
 | 
						|
	_MacDZero(x);
 | 
						|
 | 
						|
	_MacRet(x);
 | 
						|
}
 |