fxlibc/src/libc/stdio/puts.c

12 lines
154 B
C

#include <stdio.h>
int puts(char const *s)
{
int rc = 0;
if(fputs(s, stdout) != 0)
rc = -1;
if(fputc('\n', stdout) == EOF)
rc = -1;
return rc;
}