#include <qp0z1170.h> int Qp0zInitEnv(void);
|
The Qp0zInitEnv() function sets the external variable environ to a pointer to the current environment list. (On the AS/400 system, environ is initialized to NULL when an activation group is started.)
Note: Although it is possible for a user's program to directly read the environ array, use of the getenv() or Qp0zGetEnv() functions is recommended.
Parameters
None.
Return Value
Error Conditions
If Qp0zInitEnv() is not successful, errno indicates the following error.
The operation failed because of an unknown system state. See any messages in the job log and correct any errors that are indicated, then retry the operation.
Related Information
| Top | Environment Variable APIs | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |