News for hackers. Stuff that matters.
Re:Show HN: Canon-C – a semantic C library by Fikoko on Tuesday February 10, 2026 @02:34AM (#46956491)
Good catch! You’re right, ftell + fseek isn’t guaranteed to work for all files in ISO C, especially very large or non-seekable ones. In practice, for typical binary files it works fine, but I’ll add a note in the docs. I will consider a fallback using fread + realloc for full portability.

There are no comments on this comment yet.