Skip to content

Commit

Permalink
stdio/file: make rewind clear error indicator
Browse files Browse the repository at this point in the history
JIRA: RTOS-971
  • Loading branch information
adamdebek authored and ziemleszcz committed Nov 7, 2024
1 parent 88333ea commit c6a334b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdio/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,8 @@ int getchar(void)

void rewind(FILE *file)
{
fseek(file, 0, SEEK_SET);
fseek(file, 0L, SEEK_SET);
file->flags &= ~F_ERROR;
}


Expand Down

0 comments on commit c6a334b

Please sign in to comment.