fseek
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <stdio.h>
|
||
int fseek( FILE *stream, long offset, int origin ); |
||
Consente di impostare l'indicatore di posizione del file per il flusso di file
stream al valore puntato da offset. Questa funzione può essere utilizzata per impostare l'indicatore oltre la fine del file effettivo, tuttavia, i valori di posizione negativi non sono accettate. 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.
Parametri
| stream | - | stream file da modificare
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 | - | numero di caratteri da spostare la posizione relativa di origine
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 | - | posizione in cui viene aggiunto
offset. Può avere uno dei seguenti valori: 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. |
Valore di ritorno
0 caso di successo, valore diverso da zero in caso contrario. Bandiera EOF associato viene eliminato per il flusso e l'effetto di ogni ungetc viene annullata. 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.
Note
Per i flussi di testo, gli unici valori validi sono
offset 0 (applicabile a qualsiasi origin) e un valore restituito da una precedente chiamata a ftell (solo per 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.
Vedi anche
si sposta l'indicatore di posizione file in una posizione specifica in un file 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. (funzione) | |
ottiene l'indicatore di posizione del file 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. (funzione) | |
restituisce l'attuale indicatore di posizione del file 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. (funzione) | |
sposta l'indicatore di posizione file all'inizio in un file 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. (funzione) | |
C++ documentation for fseek
| |