|
|
1.1 root 1: /* @(#)fprintf.c 4.1 (Berkeley) 12/21/80 */
2: #include <stdio.h>
3:
4: fprintf(iop, fmt, args)
5: FILE *iop;
6: char *fmt;
7: {
8: register int n;
9: unsigned char buff[BUFSIZ];
10:
11: if (iop->_flag & _IONBF)
12: setbuf(iop, buff);
13:
14: n = _doprnt(fmt, &args, iop);
15:
16: if (iop->_base == buff)
17: {
18: fflush(iop);
19: setbuf(iop, NULL);
20: }
21:
22: return(ferror(iop)? EOF: n);
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.