home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / IO / FPUTC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  300 b   |  11 lines

  1. /* fputc.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */
  2.  
  3. #include <stdio.h>
  4.  
  5. int fputc (int c, FILE *stream)
  6. {
  7.   return (--stream->wcount >= 0 && (c != '\n' || !(stream->flags & _IOLBF))
  8.           ? (unsigned char)(*stream->ptr++ = (char)c)
  9.           : _flush (c, stream));
  10. }
  11.