strerror
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 <string.h>
|
||
char* strerror( int errnum ); |
||
Retorna a versão texto do código de erro
errnum
. errnum
é geralmente adquirida a partir da variável errno
, no entanto a função aceita qualquer valor de int tipo. A mensagem é específica para cada caso.Original:
Returns text version of the error code
errnum
. errnum
is usually acquired from the errno
variable, however the function accepts any value of type int. The message is locale-specific.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.
A seqüência de byte retornado não deve ser modificado pelo programa, mas pode ser substituído por uma chamada subseqüente para a função
strerror
. Original:
The returned byte string must not be modified by the program, but may be overwritten by a subsequent call to the
strerror
function. 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
errnum | - | valor. integrante referindo-se a um erro de código
Original: integral value referring to a error code 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
Pointer. a um byte string terminada em nulo correspondente ao código de erro
errnum
.Original:
Pointer to a null-terminated byte string corresponding to the error code
errnum
.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
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
C++ documentation for strerror
|