Files
semi-libc/src/stdio/puts.c
T
2011-03-24 22:58:21 -04:00

11 lines
157 B
C

#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;
}