Home > Electronics Tutorials > C Language Tutorial > stdlib.h - Environment Functions - getenv

C Language Programming Library Reference Guide

stdlib.h - Environment Functions - getenv

Declaration: char *getenv(const char *name); Searches for the environment string pointed to by name and returns the associated value to the string. This returned value should not be written to.

If the string is found, then a pointer to the string's associated value is returned. If the string is not found, then a null pointer is returned.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster