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