fxlibc/src/libc/stdio/puts.c

12 lines
154 B
C
Raw Normal View History

2021-05-09 17:34:00 +02:00
#include <stdio.h>
2020-09-17 19:27:01 +02:00
2022-01-05 21:25:41 +01:00
int puts(char const *s)
2020-09-17 19:27:01 +02:00
{
2022-01-05 21:25:41 +01:00
int rc = 0;
if(fputs(s, stdout) != 0)
rc = -1;
if(fputc('\n', stdout) == EOF)
rc = -1;
return rc;
2020-09-17 19:27:01 +02:00
}