Can I seek a position beyond 2GB in C using the standard library?

前端 未结 3 635
天涯浪人
天涯浪人 2021-01-13 00:37

I am making a program that reads disk images in C. I am trying to make something portable, so I do not want to use too many OS-specific libraries. I am aware there are many

3条回答
  •  旧巷少年郎
    2021-01-13 00:59

    pread() works on any POSIX-compliant platform (OS X, Linux, BSD, etc.). It's missing on Windows but there are lots of standard things that Windows gets wrong; this won't be the only thing in your codebase that needs a Windows special case.

提交回复
热议问题