toaruos/libc/stdio/puts.c

10 lines
154 B
C
Raw Normal View History

2018-02-25 08:13:54 +03:00
#include <stdio.h>
#include <string.h>
int puts(const char *s) {
2018-04-25 15:39:55 +03:00
/* eof? */
fwrite(s, 1, strlen(s), stdout);
fwrite("\n", 1, 1, stdout);
2018-02-25 08:13:54 +03:00
return 0;
}