aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/fputs.c
blob: 9632dfa5a3d83d06c3235b177a00c2dbcef82ddd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "stdio_impl.h"
#include <string.h>

int fputs(const char *restrict s, FILE *restrict f)
{
	size_t l = strlen(s);
	return (fwrite(s, 1, l, f)==l) - 1;
}

weak_alias(fputs, fputs_unlocked);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif