mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibC: fputs() shouldn't add a trailing newline, only puts().
This commit is contained in:
@@ -164,12 +164,15 @@ int fputs(const char* s, FILE* stream)
|
||||
if (rc == EOF)
|
||||
return EOF;
|
||||
}
|
||||
return putc('\n', stream);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int puts(const char* s)
|
||||
{
|
||||
return fputs(s, stdout);
|
||||
int rc = fputs(s, stdout);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
return fputc('\n', stdout);
|
||||
}
|
||||
|
||||
void clearerr(FILE* stream)
|
||||
|
||||
Reference in New Issue
Block a user