C++
输入/输出 | Input/output

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在失败的时候。

另见

ftellreturns the current file position indicator (function)
fseekmoves the file position indicator to a specific location in a file (function)
fsetposmoves the file position indicator to a specific location in a file (function)

c fgetpos文档

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/io/c/fgetpos