Sun Java System Web Proxy Server 4.0.11 NSAPI Developer's Guide


The util_env_create function creates and allocates the environment specified by env, returning 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.


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


A pointer to an environment.


char **env is the existing 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, util_env_str , util_env_free , util_env_find