diff options
Diffstat (limited to 'io/puts.c')
-rw-r--r-- | io/puts.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/io/puts.c b/io/puts.c new file mode 100644 index 0000000..26c477f --- /dev/null +++ b/io/puts.c @@ -0,0 +1,10 @@ +#include "io.h" +#include <errno.h> + +int puts(char const *string) +{ + if (fputs(string, _stdstream_wrap(stream_output)) == _eof_wrap) { + return _eof_wrap; + } + return putchar('\n'); +} |