mirror of
https://github.com/fluencelabs/musl
synced 2025-05-11 15:02:00 +00:00
11 lines
177 B
C
11 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;
|
||
|
}
|