X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffputc.c;fp=functions%2Fstdio%2Ffputc.c;h=0000000000000000000000000000000000000000;hb=a1f747e81dad0bb9897cb11c652403bb7bbf084c;hp=d17c936c365e35d1757ba91befdffd7835127e0a;hpb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;p=pdclib diff --git a/functions/stdio/fputc.c b/functions/stdio/fputc.c deleted file mode 100644 index d17c936..0000000 --- a/functions/stdio/fputc.c +++ /dev/null @@ -1,58 +0,0 @@ -/* ---------------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------------- - * Public Domain C Library - http://pdclib.sourceforge.net - * This code is Public Domain. Use, modify, and redistribute at will. - * --------------------------------------------------------------------------*/ - -int fputc( int c, FILE * stream ) { /* TODO */ }; - -/* PDPC code - unreviewed -{ - char buf[1]; - -#ifndef __MVS__ - stream->quickBin = 0; - if ((stream->upto < (stream->endbuf - 2)) - && (stream->bufTech != _IONBF)) - { - if (stream->textMode) - { - if (c == '\n') - { - if (stream->bufTech == _IOFBF) - { - *stream->upto++ = '\r'; - *stream->upto++ = '\n'; - } - else - { - buf[0] = (char)c; - if (fwrite(buf, 1, 1, stream) != 1) - { - return (EOF); - } - } - } - else - { - *stream->upto++ = (char)c; - } - } - else - { - *stream->upto++ = (char)c; - } - } - else -#endif - { - buf[0] = (char)c; - if (fwrite(buf, 1, 1, stream) != 1) - { - return (EOF); - } - } - return (c); -} -*/