Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>getenv</b> <u>introduced: v3.12</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  GETENV                                Introduced: v3.12

  .  Summary

  getenv(str <varname>, str <target>);

  .  Description

  The getenv function may be used to access the DOS Environment and
  get the value assigned to an Environment Variable. <varname> is the
  name of the environment variable to be searched for, and <target>
  is the string variable where whatever is assigned to the environment
  variable should be placed.

  .  Return Value

  A non-zero (TRUE) value is returned if the function is successful,
  otherwise a zero (FALSE) values is returned (if the environment
  variable didn't exist);

  .  Example

  // Get and print whatever is assigned to the TELIX env. variable

  str value[64];
  if (getenv("TELIX", value))    // if env. variable exists
   prints(value);                // print value

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson