Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

util_env_create() Function

The util_env_create function creates and allocates the environment specified by env and returns a pointer to the environment. If the parameter env is NULL, the function allocates a new environment. Use util_env_create to create an environment when executing a new program.

Syntax

#include <base/util.h>
char **util_env_create(char **env, int n, int *pos);

Return Values

A pointer to an environment.

Parameters

char **env is the environment or NULL.

int n is the maximum number of environment entries that you want in the environment.

int *pos is an integer that keeps track of the number of entries used in the environment.

See Also

util_env_replace() Function, util_env_str() Function, util_env_free() Function, util_env_find() Function