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

int puts(const char *s)
{
	int r;
	FLOCK(stdout);
	r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0);
	FUNLOCK(stdout);
	return r;
}


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