We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f602f9b commit ce0532eCopy full SHA for ce0532e
code/logic/fossil/io/stream.h
@@ -349,6 +349,16 @@ int32_t fossil_fstream_set_permissions(const char *filename, int32_t mode);
349
*/
350
int32_t fossil_fstream_get_permissions(const char *filename, int32_t *mode);
351
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
+
362
#ifdef __cplusplus
363
}
364
#include <string>
0 commit comments