Espacios de nombres
Variantes
Acciones

fseek

De cppreference.com
< c‎ | io

 
 
File input/output
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Acceso a archivos
Original:
File access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Directo de entrada / salida
Original:
Direct input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fread
fwrite
Entrada sin formato / salida
Original:
Unformatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Formato de entrada / salida
Original:
Formatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Presentar posicionamiento
Original:
File positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ftell
fgetpos
fseek
fsetpos
rewind
Gestión de errores
Original:
Error handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
clearerr
feof
ferror
perror
Las operaciones en los archivos
Original:
Operations on files
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
remove
rename
tmpfile
tmpnam
 
Defined in header <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.

Contenido

[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.
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_END
Original:
position to which offset is added. It can have one of the following values: SEEK_SET, SEEK_CUR, SEEK_END
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. 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.

[editar] 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.

[editar] 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) [edit]
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) [edit]
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) [edit]
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) [edit]