#include int puts(char const *s) { int rc = 0; if(fputs(s, stdout) != 0) rc = -1; if(fputc('\n', stdout) == EOF) rc = -1; return rc; }