summaryrefslogblamecommitdiff
path: root/src/stdio/puts.c
blob: 4c0e583cfae7cd32e4d896fa9edb12cf14838629 (plain) (tree)
1
2
3
4
5
6
7
8
9



                       




                                                         
 
#include "stdio_impl.h"

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