Difference between revisions of "Getenv"

From SDU
Jump to: navigation, search
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<div align='center'><font color="green">To make corrections or additions to this article, select the ''edit'' tab above.<br>
 +
To discuss or ask questions about this article, select the ''discussion'' tab above.</font></div>
 +
 
== Description ==
 
== Description ==
 
Gets the value of an environment variable
 
Gets the value of an environment variable
 +
  
 
== Usage ==
 
== Usage ==
 
getenv (''"string"'')
 
getenv (''"string"'')
 +
  
 
== Examples ==
 
== Examples ==
Line 11: Line 16:
 
  result = getenv("Path");
 
  result = getenv("Path");
  
== Results ==
 
This func will return the string value of the environment variable defined informed in string
 
  
 
+
== Results ==
 
+
This func will return the string value of the environment variable defined informed in string.
----
+
<div align='center'><font color="green">To make corrections or additions to this article, select the ''edit'' tab above.<br>
+
To discuss or ask questions about this article, select the ''discussion'' tab above.</font></div>
+

Revision as of 21:01, 25 July 2008

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.

Description

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.