std::getenv
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 <cstdlib> | ||
constchar*getenv(constchar*env_var ); | ||
Pesquisas de uma variável ambiental com
env_var
nome no host especificado lista ambiente e retorna informações associada a ele. O conjunto de variáveis ambientais e métodos de alterá-lo é definida pela implementação. Original:
Searches for an environmental variable with name
env_var
in the host-specified environment list and returns information associated with it. The set of environmental variables and methods of altering it are implementation-defined. 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
env_var | - | terminada em nulo cadeia de caracteres que identifica o nome da variável ambiental para procurar Original: null-terminated character string identifying the name of the environmental variable to look for 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
Cadeia de caracteres que identifica o valor da variável de ambiente ou NULL se tal variável não for encontrado.
Original:
Character string identifying the value of the environmental variable or NULL if such variable is not found.
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
Potencial saída:
Your PATH is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[editar]Veja também
Documentação C para getenv |