Difference between revisions of "Getenv"

From SDU
Jump to: navigation, search
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by FrankTR)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://aduratutuz.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://aduratutuz.co.cc CLICK HERE]=
 
----
 
</div>
 
 
__NOTOC__
 
__NOTOC__
 
[[Category:r6]]
 
[[Category:r6]]
Line 18: Line 10:
  
 
== Usage ==
 
== Usage ==
getenv (''&quot;string&quot;'')
+
getenv (''"string"'')
  
 
== Examples ==
 
== Examples ==
* Getting the value of the PATH environment variable and putting it into the variable &quot;result&quot;.
+
* Getting the value of the PATH environment variable and putting it into the variable "result".
 
  string result;
 
  string result;
  result = getenv(&quot;Path&quot;);
+
  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.

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.