12 lines
154 B
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;
|
|
}
|