Difference between revisions of "Getenv"

From SDU
Jump to: navigation, search
(New page: __NOTOC__ == Description == Gets the value of an environment variable == Usage == getenv (''"string"'') == Results == This func will return the string value of the environment variable ...)
 
(Examples)
Line 11: Line 11:
  
 
== Examples ==
 
== Examples ==
* Pushing the results of sindex into a variable (matching a string in another variable)
+
* 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");

Revision as of 20:50, 24 July 2008

Description

Gets the value of an environment variable

Usage

getenv ("string")


Results

This func will return the string value of the environment variable defined informed in string

Examples

  • Getting the value of the PATH environment variable and putting it into the variable "result".
string result;
result = getenv("Path");




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.