fputc() fixes
This commit is contained in:
@@ -10,5 +10,10 @@ int fputs(const char *str, FILE *fp)
|
||||
}
|
||||
}
|
||||
|
||||
__fio_write(fp, "\n", 1);
|
||||
if (__fio_error(fp)) {
|
||||
return EOF;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -2,10 +2,5 @@
|
||||
|
||||
int puts(const char *str)
|
||||
{
|
||||
int ret = fputs(str, stdout);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return fputc('\n', stdout);
|
||||
return fputs(str, stdout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user