Files correlati : gfm.dll Ricompilazione Demo : [ ] Commento : Modifiche per la compilazione Linux git-svn-id: svn://10.65.10.50/trunk@11079 c028cbd2-c16b-5b4b-a496-9718f37d4682
64 lines
1.1 KiB
C
Executable File
64 lines
1.1 KiB
C
Executable File
/* int PrintDecimal(fmt, arg,)
|
|
*
|
|
* ARGUMENT
|
|
* char *fmt;
|
|
* (?) arg;
|
|
*
|
|
* DESCRIPTION
|
|
* Prints out arguments, which may include DEC structures, according
|
|
* to the format string fmt. The function converts the DEC's to strings
|
|
* and calls printf.
|
|
*
|
|
* SIDE EFFECTS
|
|
* None.
|
|
*
|
|
* RETURNS
|
|
* The number of characters printed, the return from printf.
|
|
*
|
|
* POSSIBLE ERRORS
|
|
* GM_NULLPOINTER
|
|
* GM_NULLSTRING
|
|
* GM_INVALIDID
|
|
* GM_CNVRW
|
|
*
|
|
* AUTHOR
|
|
* Jared Levy
|
|
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
|
|
*
|
|
* MODIFICATIONS
|
|
*
|
|
*
|
|
*/
|
|
|
|
#include "gm.h"
|
|
#include "gmsystem.h"
|
|
#include <stdio.h>
|
|
|
|
int PrintDecimal(char * fmt, ELLIPSES)
|
|
{
|
|
char **outval, buffer[256];
|
|
int i;
|
|
|
|
_MacStart(GM_DPRINTF);
|
|
|
|
if (!fmt) {
|
|
_MacErr(GM_NULLPOINTER);
|
|
_MacRet(0);
|
|
}
|
|
|
|
outval = &fmt;
|
|
/* print the output */
|
|
dsprintf(buffer, fmt,
|
|
outval[1], outval[2], outval[3], outval[4], outval[5],
|
|
outval[6], outval[7], outval[8], outval[9], outval[10]
|
|
#ifndef _LDATA
|
|
,outval[11], outval[12], outval[13], outval[14], outval[15],
|
|
outval[16], outval[17], outval[18], outval[19], outval[20]
|
|
#endif
|
|
);
|
|
|
|
i = printf("%s", buffer);
|
|
|
|
_MacRet(i);
|
|
}
|