head 1.1; branch 1.1.1; access; symbols SFIO_1999:1.1.1.2 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.58; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.11.20.01.33.58; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 98.11.03.16.07.11; author rse; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @#include "sfstdio.h" /* Write out a byte ** Written by Kiem-Phong Vo */ #if __STD_C int fputc(int c, FILE* fp) #else int fputc(c, fp) reg int c; reg FILE* fp; #endif { reg Sfio_t* sp; if(!(sp = _sfstream(fp))) return -1; _stdclrerr(fp,sp); if(sfputc(sp,c) < 0) { _stderr(fp); return -1; } else return c; } @ 1.1.1.1 log @Import of Sfio1997 @ text @@ 1.1.1.2 log @Import of Sfio1999 @ text @a27 23 #if _lib__IO_putc #if __STD_C int _IO_putc(int c, FILE* fp) #else int _IO_putc(c, fp) reg int c; reg FILE* fp; #endif { reg Sfio_t* sp; if(!(sp = _sfstream(fp))) return -1; _stdclrerr(fp,sp); if(sfputc(sp,c) < 0) { _stderr(fp); return -1; } else return c; } #endif @