mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:47:42 +00:00
LibC: Let's assert in rewind() that fseek()ing to the beginning worked
This commit is contained in:
parent
e364846622
commit
804df54296
1 changed files with 3 additions and 1 deletions
|
@ -320,7 +320,9 @@ long ftell(FILE* stream)
|
||||||
|
|
||||||
void rewind(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, ...)
|
int dbgprintf(const char* fmt, ...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue