std::perror
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <cstdio>
|
||
void perror( const char *s ); |
||
Impressões para stderr o conteúdo da cadeia de caracteres terminada em nulo apontado por
s
(a menos que s
é um ponteiro nulo), seguido pelos dois personagens ": ", seguido pela implementação mensagem de erro definida descrevendo o código de erro atualmente armazenado na variável de sistema errno (idêntica à saída do std::strerror(errno)), seguido por '\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.
Índice |
[editar] Parâmetros
s | - | ponteiro para uma string terminada em nulo com mensagem explicativa
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. |
[editar] Valor de retorno
(Nenhum)
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.
[editar] Exemplo
Saída:
log(-1) failed: Numerical argument out of domain
[editar] Veja também
macro que se expande para POSIX compatível variable
(variável macro) número de segmento local de erro Original: macro which expands to POSIX-compatible thread-local error number variable (variável macro) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
retorna uma versão do texto de um código de erro apresentado 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. (função) | |
Documentação C para perror
|