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