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

This commit is contained in:
Rangi
2026-07-21 14:31:05 -04:00
parent c3073f4318
commit c691ec6607
5 changed files with 29 additions and 26 deletions
+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);