Skip to content

Commit f602f9b

Browse files
Update stream.c
1 parent 3b42ddb commit f602f9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/logic/stream.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,3 +627,9 @@ int32_t fossil_fstream_get_permissions(const char *filename, int32_t *mode) {
627627
return 0;
628628
#endif
629629
}
630+
631+
void fossil_fstream_rewind(fossil_fstream_t *stream) {
632+
if (stream && stream->file) {
633+
rewind(stream->file);
634+
}
635+
}

0 commit comments

Comments
 (0)