SDU
Personal tools

Getenv

From SDU

Jump to: navigation, search
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.

This page was last modified 05:22, 30 November 2010.  This page has been accessed 2,549 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers