std::fsetpos
De 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 ); |
||
Establece el indicador de posición del fichero y el estado de análisis multibyte (si lo hay) para la secuencia de archivo C
stream de acuerdo con el valor apuntado por 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.
Además de establecer el estado de análisis nuevo y posición, una llamada a esta función anula los efectos de std::ungetc y borra el estado de fin de archivo, si se ha definido .
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.
Si una lectura o escritura error, el indicador de error (std::ferror) para la corriente se ajusta .
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.
[editar] Parámetros
| stream | - | archivo continuo a modificar
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 | - | puntero a un objeto fpos_t obtenido de std::fgetpos llama en un flujo asociado con el mismo archivo
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. |
[editar] Valor de retorno
0 en el éxito, el valor distinto de cero lo contrario. Asimismo, establece errno en caso de fallo .
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.
[editar] Ver también
| obtiene el indicador de posición del archivo 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. (función) | |
| devuelve el indicador de archivo posición actual 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. (función) | |
| desplaza el indicador de posición de archivo a una ubicación específica en un archivo 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. (función) | |
| C documentation for fsetpos
| |