wr
hn
Top
New
Best
Ask
Show
Jobs
Back
F
Fikoko
Joined 8 months ago
Karma
1
Submissions
3
Member since
Feb 10
View on Hacker News
Recent submissions
Comment · 8 months ago
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.
Show HN: Canon-C – a semantic C library
g
github.com
3
Fikoko
8 months ago
2
comments