std::fsetpos
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. |
Elemento definito nell'header <cstdio> | ||
int fsetpos(std::FILE* stream, conststd::fpos_t* pos ); | ||
Consente di impostare l'indicatore di posizione del file e lo stato di analisi multibyte (se presente) per il flusso di file C
stream
in base al valore puntato da 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.
Oltre a stabilire nuovo stato e la posizione di analisi, una chiamata a questa funzione annulla gli effetti della std::ungetc e cancella la fine del file di stato, se è impostata.
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.
Se una lettura o scrittura di errore, l'indicatore di errore (std::ferror) per il flusso viene impostato.
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.
[modifica]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. |
pos | - | puntatore a un oggetto fpos_t ottenuto da std::fgetpos chiamato un flusso associato con lo stesso file 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. |
[modifica]Valore di ritorno
0 caso di successo, valore diverso da zero in caso contrario. Inoltre, imposta errno in caso di fallimento.
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.
[modifica]Vedi anche
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) | |
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) | |
C documentation for fsetpos |