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