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.33.59; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.11.20.01.33.59; author rse; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @#include "sfstdio.h" /* Get a word. ** Written by Kiem-Phong Vo */ #if __STD_C int getw(FILE* fp) #else int getw(fp) reg FILE* fp; #endif { reg Sfio_t* sp; int w; if(!(sp = _sfstream(fp))) return -1; _stdclrerr(fp,sp); if(sfread(sp,(char*)(&w),sizeof(int)) != sizeof(int)) { if(sfeof(sp)) _stdeof(fp); if(sferror(sp)) _stderr(fp); return -1; } return w; } @ 1.1.1.1 log @Import of Sfio1997 @ text @@