LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

getenv

getenv

char *getenv (const char environmentName[]);

Purpose

Searches for the environment string that matches the specified environment name and returns the associated value to the string.

Parameters

Input
Name Type Description
environmentName const char [] Contains the name of the environment that is searched for in the list of environments provided by the host environment.

Return Value

Name Type Description
matchedListMember char * Contains a pointer to the string associated with the match among the list of environments, if found. This string is not modified by the program, but can be overwritten by a subsequent call to the getenv function. If the environment name cannot be found, the function returns a null pointer.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Previous

Environment

Previous

Environment