std::fsetpos
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <cstdio>
|
||
| int fsetpos( std::FILE* stream, const std::fpos_t* pos ); |
||
设置文件位置指示器和多字节的解析状态(如果有的话)的C文件流
stream根据指向的值由pos. Original:
Sets the file position indicator and the multibyte parsing state (if any) for the C file stream
stream according to the value pointed to by pos. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
除了建立新的的解析状态和位置,调用这个函数撤消的影响std::ungetc,并清除文件的结束状态,如果它被设置.
Original:
Besides establishing new parse state and position, a call to this function undoes the effects of std::ungetc and clears the end-of-file state, if it is set.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
如果一个读或写错误发生时,错误指示灯(std::ferror)被设定为流.
Original:
If a read or write error occurs, the error indicator (std::ferror)for the stream is set.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 参数
| stream | - | 文件流来修改
Original: file stream to modify The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| pos | - | 指针获得一个fpos_t对象具有相同的文件相关联的流称为从std::fgetpos
Original: pointer to a fpos_t object obtained from std::fgetpos called on a stream associated with the same file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
0成功时,返回非零值。此外,设置errno,失败.....
Original:
0 upon success, nonzero value otherwise. Also, sets errno on failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 另请参阅
| 获取文件位置指示器 Original: gets the file position indicator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 返回当前的文件指针位置 Original: returns the current file position indicator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| 在一个文件中的文件位置指示符移动到特定的位置 Original: moves the file position indicator to a specific location in a file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| C documentation for fsetpos
| |