campo-sirio/gfm/uitod.c

43 lines
668 B
C
Raw Normal View History

/* DEC *ConvUnsToDecimal( x, l)
*
* ARGUMENT
* DEC *x;
* unsigned l;
*
* DESCRIPTION
* Converts uns 'l' to a DEC with implied decimal 0.
*
* SIDE EFFECTS
* x is indeterminate on error.
*
* RETURNS
* The DEC if the conversion is successful, and GM_NULL otherwise.
*
* POSSIBLE ERROR CODES
*
* GM_NULLPOINTER
*
* AUTHOR
* Jared Levy Feb. 9, 1987
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
*
* MODIFICATIONS
*
*/
#include <stdio.h>
#include "gm.h"
#include "gmsystem.h"
DEC *ConvUnsToDecimal( x, l)
DEC *x;
unsigned int l;
{
DEC *t;
_MacStart(GM_UITOD);
t=(ConvLongToDecimal(x, (long) l));
_MacRet(t);
}