Question about file seeking position

后端 未结 3 508
陌清茗
陌清茗 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:54

    On Windows, use _lseeki64(), on Linux, lseek64().

    I recommend to use lseek64() on both systems by doing something like this:

    #ifdef _WIN32
    #include 
    #define lseek64 _lseeki64
    #else
    #include 
    #endif
    

    That's all you need.

提交回复
热议问题