Skip to content

Commit ce0532e

Browse files
Update stream.h
1 parent f602f9b commit ce0532e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

code/logic/fossil/io/stream.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,16 @@ int32_t fossil_fstream_set_permissions(const char *filename, int32_t mode);
349349
*/
350350
int32_t fossil_fstream_get_permissions(const char *filename, int32_t *mode);
351351

352+
/**
353+
* @brief Rewinds the file stream to the beginning.
354+
*
355+
* Resets the position of the file pointer in the given `fossil_fstream_t`
356+
* structure to the beginning of the file, if the stream and file are valid.
357+
*
358+
* @param stream Pointer to a `fossil_fstream_t` structure representing the file stream.
359+
*/
360+
void fossil_fstream_rewind(fossil_fstream_t *stream);
361+
352362
#ifdef __cplusplus
353363
}
354364
#include <string>

0 commit comments

Comments
 (0)