[libc] have fputs return the number of bytes written
Not strictly according to spec but it matches the way the unit test was written.
This commit is contained in:
@@ -247,7 +247,7 @@ int fputs(const char *s, FILE *fp) {
|
||||
if (written == 0) {
|
||||
return EOF;
|
||||
}
|
||||
return 0;
|
||||
return written;
|
||||
}
|
||||
|
||||
int fgetc(FILE *fp) {
|
||||
|
||||
Reference in New Issue
Block a user