mirror of
https://github.com/diegocr/libnix.git
synced 2026-09-11 19:25:43 +00:00
16 lines
218 B
C
16 lines
218 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;
|
|
}
|
|
|
|
int putchar(int c) {
|
|
return fputc(c, stdout);
|
|
}
|