Difference between revisions of "Getenv"

From SDU
Jump to: navigation, search
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by FrankTR)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
>__NOTOC__
+
__NOTOC__
 
[[Category:r6]]
 
[[Category:r6]]
 
[[Category:r11]]
 
[[Category:r11]]
Line 10: Line 10:
  
 
== Usage ==
 
== Usage ==
getenv (''"string"'')
+
getenv (''"string"'')
  
 
== Examples ==
 
== Examples ==
* Getting the value of the PATH environment variable and putting it into the variable "result".
+
* Getting the value of the PATH environment variable and putting it into the variable "result".
 
  string result;
 
  string result;
  result = getenv("Path");
+
  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.
 
----
 
<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://icucykeca.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://icucykeca.co.cc CLICK HERE]=
 
----
 
</div>
 

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.