head 1.1; branch 1.1.1; access; symbols SFIO_1999:1.1.1.1 SFIO_1998:1.1.1.1 SFIO_1997:1.1.1.1 ATT:1.1.1; locks; strict; comment @ * @; 1.1 date 96.11.20.01.34.00; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.11.20.01.34.00; author rse; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @#include "sfstdio.h" /* Internal scanf egine to read from stdin ** Written by Kiem-Phong Vo */ #if __STD_C int vscanf(const char* form, va_list args) #else int vscanf(form,args) char* form; /* format to use */ va_list args; /* arg list if argf == 0 */ #endif { reg int rv; reg Sfio_t* sp; if(!(sp = _sfstream(stdin))) return -1; _stdclrerr(stdin,sp); if((rv = sfvscanf(sp,form,args)) <= 0) { if(sfeof(sp)) _stdeof(stdin); if(sferror(sp)) _stderr(stdin); } return rv; } @ 1.1.1.1 log @Import of Sfio1997 @ text @@