fgetpos

ftello/fseeko vs fgetpos/fsetpos

陌路散爱 提交于 2019-12-18 02:49:49
问题 What is the difference between ftello/fseeko and fgetpos/fsetpos? Both seem to be file pointer getting/setting functions that use opaque offset types to sometimes allow 64 bit offsets. Are they supported on different platforms or by different standards? Is one more flexible in the type of the offset it uses? And, by the way, I am aware of fgetpos/fsetpos and ftell/fseek, but this is not a duplicate. That question asks about ftell/fseek, and the answer is not applicable to ftello/fseeko. 回答1:

ftello/fseeko vs fgetpos/fsetpos

坚强是说给别人听的谎言 提交于 2019-11-28 23:41:13
What is the difference between ftello/fseeko and fgetpos/fsetpos? Both seem to be file pointer getting/setting functions that use opaque offset types to sometimes allow 64 bit offsets. Are they supported on different platforms or by different standards? Is one more flexible in the type of the offset it uses? And, by the way, I am aware of fgetpos/fsetpos and ftell/fseek , but this is not a duplicate. That question asks about ftell/fseek, and the answer is not applicable to ftello/fseeko. See Portable Positioning for detailed information on the difference. An excerpt: On some systems where text