diff options
Diffstat (limited to 'libc-top-half/musl/src/stdio/puts.c')
-rw-r--r-- | libc-top-half/musl/src/stdio/puts.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/stdio/puts.c b/libc-top-half/musl/src/stdio/puts.c new file mode 100644 index 0000000..5a38a49 --- /dev/null +++ b/libc-top-half/musl/src/stdio/puts.c @@ -0,0 +1,10 @@ +#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; +} |