10 lines
177 B
C
10 lines
177 B
C
#include "stdio_impl.h"
|
|
|
|
int fputc(int c, FILE *f)
|
|
{
|
|
FLOCK(f);
|
|
if (c != f->lbf && f->wpos + 1 < f->wend) *f->wpos++ = c;
|
|
else c = __overflow(f, c);
|
|
FUNLOCK(f);
|
|
return c;
|
|
}
|