std::fgetpos
Defined in header <cstdio> | | |
|---|---|---|
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。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

