projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
stdio
/
fputs.c
1
#include "stdio_impl.h"
2
3
int fputs(const char *s, FILE *f)
4
{
5
size_t l = strlen(s);
6
if (!l) return 0;
7
return (int)fwrite(s, l, 1, f) - 1;
8
}
9
10
weak_alias(fputs, fputs_unlocked);