std::fgetpos
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <cstdio> 中定义
|
||
| int fgetpos( std::FILE* stream, std::fpos_t* pos ); |
||
Obtains the file position indicator and the current parse state (if any) for the file stream stream and stores them in the object pointed to by pos. The value stored is only meaningful as the input to std::fsetpos.
目录 |
[编辑] 参数
| stream | - | 文件流进行检查
|
| pos | - | 到fpos_t对象要存储该文件的位置指示器指针
原文: pointer to a fpos_t object to store the file position indicator to |
[编辑] 返回值
0 upon success, nonzero value otherwise. Also sets errno on failure.
[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 返回当前的文件指针位置 原文: returns the current file position indicator (函数) | |
| 在一个文件中的文件位置指示符移动到特定的位置 原文: moves the file position indicator to a specific location in a file (函数) | |
| 在一个文件中的文件位置指示符移动到特定的位置 原文: moves the file position indicator to a specific location in a file (函数) | |
| C documentation for fgetpos
| |