|
|
1.1 ! root 1: /* ! 2: * libc/stdio/_fgetstr.c ! 3: * ANSI-compliant C standard i/o library internals. ! 4: * _fgetstr() ! 5: * Get character from string stream. ! 6: */ ! 7: ! 8: #include <stdio.h> ! 9: ! 10: int ! 11: _fgetstr(fp) register FILE *fp; ! 12: { ! 13: if (--fp->_cc < 0) { ! 14: fp->_cc = 0; ! 15: fp->_ff1 |= _FEOF; ! 16: return EOF; ! 17: } ! 18: return (*fp->_cp++); ! 19: } ! 20: ! 21: /* end of libc/stdio/_fgetstr.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.