campo-sirio/gfm/dfree.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

55 lines
899 B
C
Executable File

/* void FreeDecimal(pSrc1)
*
* ARGUMENT
* pSrc1 is a ptr to the source DEC structure.
*
* DESCRIPTION
* Returns storage to DOS via free().
*
* SIDE EFFECTS
* Does NOT CHECK to see if spaces was allocated via malloc().
* Therefore, DOS will lock up cause cold reboot if unallocated
* space is freed
*
* RETURNS
* None.
*
* POSSIBLE ERROR CODES
*
* GM_NULLPOINTER
*
* AUTHOR
* Andy Anderson 17-JAN-1987 14:35
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
*
* MODIFICATIONS
*
*/
#include <stdio.h>
#include <malloc.h>
#include "gm.h"
#include "gmsystem.h"
void FreeDecimal(pSrc1)
DEC *pSrc1;
{
_MacStart(GM_DFREE);
/* Can't free null pointers */
if(!pSrc1) {
_MacErr(GM_NULLPOINTER);
_MacRetV;
}
/* But we'll free him a DEC if possible */
#ifdef LATTICE
free((char *) pSrc1);
#else
free((char *) pSrc1);
#endif
_MacRetV;
}