1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:25:07 +00:00

Add stub fflush().

This commit is contained in:
Andreas Kling 2018-11-05 14:56:05 +01:00
parent 8039a20611
commit 60a8144b68
2 changed files with 9 additions and 0 deletions

View file

@ -23,6 +23,14 @@ int feof(FILE* stream)
return stream->eof;
}
int fflush(FILE* stream)
{
// FIXME: Implement buffered streams, duh.
if (!stream)
return -EBADF;
return 0;
}
char* fgets(char* buffer, int size, FILE* stream)
{
assert(stream);