mirror of
https://github.com/cahirwpz/libnix.git
synced 2026-09-12 03:30:43 +00:00
12 lines
168 B
C
12 lines
168 B
C
#include <stdio.h>
|
|
|
|
int puts(const char *s)
|
|
{
|
|
while(*s)
|
|
if(fputc(*s++,stdout)==EOF)
|
|
return EOF;
|
|
if(fputc('\n',stdout)==EOF)
|
|
return EOF;
|
|
return 0;
|
|
}
|