Question about file seeking position

后端 未结 3 509
陌清茗
陌清茗 2021-01-15 00:17

My previous Question is about raw data reading and writing, but a new problem arised, it seems there is no ending....

The question is: the parameters of the function

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-15 00:57

    a 4 byte unsigned integer can represent a value up to 4294967295, which means if you want to move more than 4G, you need to use lseek64(). In addition, you can use fgetpos() and fsetpos() to change the position in the file.

提交回复
热议问题