Use std::optional<uint64_t> instead of long with a special -1 sentinel for seekSize

This commit is contained in:
Rangi committed 2026-07-21 14:31:05 -04:00
1 parent c3073f4318
commit c691ec6607
5 files changed
+29 -26

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ int xfclose(FILE *file);
int xclose(int fd);
// Measure file size with `fseek` and `ftell` idiom
long seekSize(FILE *file);
std::optional<uint64_t> seekSize(FILE *file);
// Locale-independent character class functions
bool isNewline(int c);