Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

util_env_create

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.

Syntax

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

Returns

A pointer to an environment.

Parameters

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