fputc.c 176 B

12345678910
  1. #include "stdio_impl.h"
  2. int fputc(int c, FILE *f)
  3. {
  4. if (f->lock < 0 || !__lockfile(f))
  5. return putc_unlocked(c, f);
  6. c = putc_unlocked(c, f);
  7. __unlockfile(f);
  8. return c;
  9. }