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
commit 804df54296
Notes: sideshowbarker 2024-07-19 12:00:21 +09:00

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, ...)