campo-sirio/gfm/dcpy.c
alex ba237a9d91 Patch level : no patch
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
2002-02-26 12:19:02 +00:00

50 lines
906 B
C
Executable File

/* DEC *CopyDecimal(pDst,pSrc1)
*
* ARGUMENT
* pDst is a ptr to the source1 DEC structure.
* pSrc1 is a ptr to the source2 DEC structure.
*
* DESCRIPTION
* Copies pSrc1 to pDst. If pDst is null, tries to create a
* DEC structure, then do the copy.
*
* SIDE EFFECTS
* None.
*
* RETURNS
* Returns pointer to the new structure if successful, otherwise
* returns GM_NULL. If pSrc1 point to a null, returns GM_NULLPOINTER.
*
*
* POSSIBLE ERROR CODES
*
* GM_NULLPOINTER
*
* AUTHOR
* Andy Anderson 15-JAN-1987 18:45
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
*
* MODIFICATIONS
*
*/
#include <stdio.h>
#include "gm.h"
#include "gmsystem.h"
DEC *CopyDecimal(pDst,pSrc)
DEC *pDst;
DEC *pSrc;
{
/* source must be supplied !! */
_MacStart(GM_DCPY);
_MacInVar(pSrc,GM_NULL);
_MacOutVar(pDst,GM_NULL);
_MacDCopy(pDst,pSrc);
_MacRet(pDst);
}