X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffputc.c;h=f364ed38ba7471d3ca80f2d21560737eca642042;hb=7be59733d71ada3a32a98622507399253f1d5e48;hp=ec859385644cc9ed219c29dbb49f85cfb0cf667b;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index ec859385..f364ed38 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -1,10 +1,7 @@ -#include "stdio_impl.h" +#include +#include "putc.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; + return do_putc(c, f); }