blob: 080b84220b2f8c35fd579e38ce9266d1958f4e88 [file] [log] [blame]
#include "stdio_impl.h"
int putc(int c, FILE* f) {
if (atomic_load(&f->lock) < 0 || !__lockfile(f))
return putc_unlocked(c, f);
c = putc_unlocked(c, f);
__unlockfile(f);
return c;
}
weak_alias(putc, _IO_putc);