campo-sirio/gfm/dsscanf.c
alex 0688668ef5 Patch level : 2.0 464
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
2003-05-01 14:42:54 +00:00

61 lines
1.1 KiB
C
Executable File

/* int StringScanDecimal(sBuffer, sFmt, arg,)
*
* ARGUMENT
* char *sFmt, *sBuffer;
* (?) arg;
*
* DESCRIPTION
* Scans arguments, which may include DEC structures,
* from a string, according
* to the format string sFmt. The function converts the DEC's to strings
* and calls scanf.
*
* SIDE EFFECTS
* None.
*
* RETURNS
* The number of fields scanned, the return from scanf.
*
* POSSIBLE ERRORS
* GM_NULLPOINTER
* GM_NULLSTRING
* GM_INVALIDID
* GM_CNVRW
* GM_CNVRE
* GM_NAN
* GM_EOF
*
* AUTHOR
* Jared Levy
* Copyright (C) 1987-1990 Greenleaf Software Inc. All rights reserved.
*
* MODIFICATIONS
*
*
*/
#include <stdio.h>
#include "gm.h"
#include "gmsystem.h"
int StringScanDecimal(char * sBuffer,char * sFmt, ELLIPSES)
{
int i;
char **pOutVal;
_MacStart(GM_DSSCANF);
pOutVal=&sFmt;
i=_ScanfAux(2, sBuffer, sFmt,
pOutVal[1], pOutVal[2], pOutVal[3], pOutVal[4], pOutVal[5],
pOutVal[6], pOutVal[7], pOutVal[8], pOutVal[9], pOutVal[10]
#ifndef _LDATA
,pOutVal[11], pOutVal[12], pOutVal[13], pOutVal[14], pOutVal[15],
pOutVal[16], pOutVal[17], pOutVal[18], pOutVal[19], pOutVal[20]
#endif
);
_MacRet(i);
}