Difference between revisions of "Getenv"
From SDU
Agegeleruvy (Talk | contribs) |
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by FrankTR) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
__NOTOC__ | __NOTOC__ | ||
[[Category:r6]] | [[Category:r6]] | ||
| Line 18: | Line 10: | ||
== Usage == | == Usage == | ||
| − | getenv ('' | + | getenv (''"string"'') |
== Examples == | == Examples == | ||
| − | * Getting the value of the PATH environment variable and putting it into the variable | + | * Getting the value of the PATH environment variable and putting it into the variable "result". |
string result; | string result; | ||
| − | result = getenv( | + | result = getenv("Path"); |
== Results == | == Results == | ||
This func will return the string value of the environment variable defined informed in string. | This func will return the string value of the environment variable defined informed in string. | ||
Latest revision as of 05:22, 30 November 2010
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.
To discuss or ask questions about this article, select the discussion tab above.
Overview
Gets the value of an environment variable
Usage
getenv ("string")
Examples
- Getting the value of the PATH environment variable and putting it into the variable "result".
string result;
result = getenv("Path");
Results
This func will return the string value of the environment variable defined informed in string.