std::fgetpos
STD:Fgetpos
Defined in header | | |
---|---|---|
int fgetpos( std::FILE* stream, std::fpos_t* pos | | |
获取文件位置指示符和文件流的当前解析状态%28(如果有%29)stream
并将它们存储在指向的对象中。pos
存储的值只有当输入到std::fsetpos
...
参数
stream | - | file stream to examine |
---|---|---|
pos | - | pointer to a fpos_t object to store the file position indicator to |
返回值
0
如果成功,则非零值。也集errno
在失败的时候。
例
另见
ftell | returns the current file position indicator (function) |
---|---|
fseek | moves the file position indicator to a specific location in a file (function) |
fsetpos | moves the file position indicator to a specific location in a file (function) |
c fgetpos文档
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。