Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - getenvc() return environment variable (case sensitive) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getenvc()           Return environment variable (case sensitive)
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func char getenvc extern
   param const char cEnvironmentVariable

 Arguments
   cEnvironmentVariable is the environment string to scan for.
   The parameter must exactly match with the query environment string.

 Return
   The current value of the specified environment setting.

 Description
   The getenvc() function returns the current value of the DOS environment
   variable cEnvironmentVariable. If the variable is not defined, an empty
   string is returned.

   Contrary to the getenv() function, getenvc() is case sensitive. It is
   primarily used under operating systems where mixed case environment
   strings occur.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_getenvc
   vardef
      char cPath
   enddef
   ? "prompt is", getenvc( "prompt" )
   ? "Prompt is", getenvc( "Prompt" )
   ? "PROMPT is", getenvc( "PROMPT" )
   endproc

   proc main
   Test_getenvc()
   endproc

See Also: getenv()

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