labs

getenv

#include <stdlib.h>char *getenv(const char *name);

The getenv( ) function returns a pointer to environmental information associated with the string pointed to by name in the implementation-defined environmental information table. The information must not be changed by your code.

The environment of a program may include such things as path names and devices online. The exact nature of this data is implementation defined. You will need to refer to your compiler’s documentation for details.

If a call is made to getenv( ) with an argument that does not match any of the environment data, a null pointer is returned.

A related function is system( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net