1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibC: Let's assert in rewind() that fseek()ing to the beginning worked

This commit is contained in:
Andreas Kling 2019-09-22 19:36:22 +02:00
parent e364846622
commit 804df54296

View file

@ -320,7 +320,9 @@ long ftell(FILE* stream)
void rewind(FILE* stream)
{
fseek(stream, 0, SEEK_SET);
ASSERT(stream);
int rc = fseek(stream, 0, SEEK_SET);
ASSERT(rc == 0);
}
int dbgprintf(const char* fmt, ...)