musl/src/stdio/fputc.c

13 lines
202 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "stdio_impl.h"
int fputc(int c, FILE *f)
{
if (f->lock < 0 || !__lockfile(f))
return putc_unlocked(c, f);
c = putc_unlocked(c, f);
__unlockfile(f);
2011-02-12 00:22:29 -05:00
return c;
}
weak_alias(fputc, putc);