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 ...)
 
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by FrankTR)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
== Description ==
+
[[Category:r6]]
 +
[[Category:r11]]
 +
[[Category:Spel Code]]
 +
{{Global Header}}
 +
{{Global Announcement}}
 +
 
 +
== Overview ==
 
Gets the value of an environment variable
 
Gets the value of an environment variable
  
 
== Usage ==
 
== Usage ==
 
getenv (''"string"'')
 
getenv (''"string"'')
 
 
== Results ==
 
This func will return the string value of the environment variable defined informed in string
 
  
 
== 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");
  
 
+
== 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>
+

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.