projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
include header that declares __syscall_ret where it's defined
[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);