rewrite popen to use posix_spawn instead of fragile vfork hacks
[musl] / src / stdio / puts.c
1 #include "stdio_impl.h"
2
3 int puts(const char *s)
4 {
5         int r;
6         FLOCK(stdout);
7         r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0);
8         FUNLOCK(stdout);
9         return r;
10 }