std::getenv
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 <cstdlib> | ||
constchar*getenv(constchar*env_var ); | ||
Cerca un variabile ambientale con
env_var
nome nella lista di host specificato ambiente e restituisce le informazioni ad esso associati. L'insieme di variabili ambientali e metodi di alterarla sono definiti dall'implementazione. 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.
Indice |
[modifica]Parametri
env_var | - | terminazione null stringa di caratteri che identifica il nome della variabile d'ambiente per cercare 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. |
[modifica]Valore di ritorno
Stringa di caratteri che identifica il valore della variabile ambientale o NULL se tale variabile non viene trovato.
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.
[modifica]Esempio
Possible output:
Your PATH is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[modifica]Vedi anche
C documentation for getenv |