Espaços nominais
Variantes
Acções

fseek

Da cppreference.com
< c‎ | io

 
 
File input/output
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Arquivo de acesso
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.
Directa de entrada / saída
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
Não formatado entrada / saída
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.
Formatado de entrada / saída
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.
Arquivo de posicionamento
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
De tratamento de erros
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
Operações em arquivos
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 );
Define o indicador de posição de arquivo do fluxo stream arquivo com o valor apontado por offset. Esta função pode ser usada para definir o indicador para além do fim real do arquivo, no entanto, os valores de posição negativas não são aceitos.
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.

Índice

[editar] Parâmetros

stream -
arquivo de fluxo de 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 a deslocar a posição relativa à origem
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 -
posição para a qual offset é adicionado. Ele pode ter um dos seguintes 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 no sucesso valor diferente de zero, caso contrário. Associated bandeira EOF está liberado para o fluxo e o efeito de qualquer ungetc é desfeita.
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 fluxos de texto, os únicos valores válidos de offset são 0 (aplicável a qualquer origin) e um valor retornado por uma chamada anterior para ftell (aplicável apenas 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] Veja também

move o indicador de posição de arquivo para um local específico em um arquivo
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.

(função) [edit]
fica o indicador de posição de arquivo
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.

(função) [edit]
retorna o indicador de posição de arquivo atual
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.

(função) [edit]
move o indicador de posição do arquivo para o início em um arquivo
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.

(função) [edit]