#include "sfstdio.h" /* Write out a byte ** Written by Kiem-Phong Vo */ #if __STD_C int fputc(int c, FILE* f) #else int fputc(c, f) reg int c; reg FILE* f; #endif { reg Sfio_t* sf; if(!(sf = SFSTREAM(f))) return -1; if((c = sfputc(sf,c)) < 0) _stdseterr(f,sf); return c; } #if _lib__IO_putc && !_done_IO_putc && !defined(fputc) #define _done_IO_putc 1 #define fputc _IO_putc #include "fputc.c" #undef fputc #endif #if _lib_fputc_unlocked && !_done_fputc_unlocked && !defined(fputc) #define _done_fputc_unlocked 1 #define fputc fputc_unlocked #include "fputc.c" #undef fputc #endif