std::perror
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>
|
||
void perror( const char *s ); |
||
Stampe a stderr il contenuto della stringa con terminazione null di caratteri puntata da
s
(a meno che s
è un puntatore nullo), seguito dai due caratteri ": ", seguiti dalla realizzazione messaggio di errore definito descrive il codice di errore attualmente memorizzato nella variabile di sistema errno (identica all'uscita di std::strerror(errno)), seguita da '\n'.Original:
Prints to stderr the contents of the null-terminated character string pointed to by
s
(unless s
is a null pointer), followed by the two characters ": ", followed by the implementation-defined error message describing the error code currently stored in the system variable errno (identical to the output of std::strerror(errno)), followed by '\n'.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.
Indice |
[modifica] Parametri
s | - | puntatore ad una stringa con terminazione null con il messaggio esplicativo
Original: pointer to a null-terminated string with explanatory message 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
(Nessuno)
Original:
(none)
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] Esempio
Output:
log(-1) failed: Numerical argument out of domain
[modifica] Vedi anche
macro che si espande a POSIX thread locale variable
(variabili macro) Numero di errore Original: macro which expands to POSIX-compatible thread-local error number variable (variabili macro) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
restituisce una versione di testo di un codice di errore visualizzato Original: returns a text version of a given error code 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 perror
|