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.
#include <base/util.h> char **util_env_create(char **env, int n, int *pos);
A pointer to an environment.
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.
util_env_replace() Function, util_env_str() Function, util_env_free() Function, util_env_find() Function