fseek
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <stdio.h>
|
||
int fseek( FILE *stream, long offset, int origin ); |
||
Establece el indicador de posición del fichero para el flujo de archivos
stream al valor apuntado por offset. Esta función se puede usar para ajustar el indicador más allá del extremo real del archivo, sin embargo, los valores negativos de posición no son aceptados . Original:
Sets the file position indicator for the file stream
stream to the value pointed to by offset. This function can be used to set the indicator beyond the actual end of the file, however, negative position values are not accepted. 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.
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. |
| offset | - | número de caracteres para cambiar la posición relativa al origen
Original: number of characters to shift the position relative to origin The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| origin | - | posición a la que se añade
offset. Puede tener uno de los siguientes valores: SEEK_SET, SEEK_CUR, SEEK_ENDOriginal: position to which offset is added. It can have one of the following values: SEEK_SET, SEEK_CUR, SEEK_ENDThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
0 en el éxito, el valor distinto de cero lo contrario. Bandera Associated EOF se borra para el flujo y el efecto de cualquier ungetc se deshace . Original:
0 upon success, nonzero value otherwise. Associated EOF flag is cleared for the stream and the effect of any ungetc is undone. 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.
Notas
Para secuencias de texto, los únicos valores válidos son
offset 0 (aplicable a cualquier origin) y un valor devuelto por una llamada anterior a ftell (sólo aplicable a SEEK_SET) .Original:
For text streams, the only valid values of
offset are 0 (applicable to any origin) and a value returned by an earlier call to ftell (only applicable to SEEK_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.
Ver tambié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) | |
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) | |
mueve el indicador de posición de archivo al principio en un archivo Original: moves the file position indicator to the beginning 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) | |
Documentación de C++ para fseek
| |