projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix assumption in fputs that fwrite returning 0 implies an error
[oweals/musl.git]
/
src
/
stdio
/
fputc.c
1
#include "stdio_impl.h"
2
3
int fputc(int c, FILE *f)
4
{
5
if (f->lock < 0 || !__lockfile(f))
6
return putc_unlocked(c, f);
7
c = putc_unlocked(c, f);
8
__unlockfile(f);
9
return c;
10
}