1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 int fputc( int c, FILE * stream ) { /* TODO */ };
10 /* PDPC code - unreviewed
16 if ((stream->upto < (stream->endbuf - 2))
17 && (stream->bufTech != _IONBF))
23 if (stream->bufTech == _IOFBF)
25 *stream->upto++ = '\r';
26 *stream->upto++ = '\n';
31 if (fwrite(buf, 1, 1, stream) != 1)
39 *stream->upto++ = (char)c;
44 *stream->upto++ = (char)c;
51 if (fwrite(buf, 1, 1, stream) != 1)