Functions | |
const char * | envstr_find (const struct str *env, const char *var, long varlen) |
const char * | envstr_get (const struct str *env, const char *var) |
int | envstr_set (struct str *env, const char *var, const char *val, int overwrite) |
void | envstr_unset (struct str *env, const char *var) |
int | envstr_put (struct str *env, const char *asgn, int overwrite) |
int | envstr_from_array (struct str *env, char **array, int overwrite) |
int | envstr_from_string (struct str *env, const char *s, int overwrite) |
char ** | envstr_make_array (const struct str *env) |
0
(false) if the function failed due to being unable to allocate memory, and non-zero (true) otherwise.
|
Find the named variable in the environment string.
|
|
Adds the assignments from the array of pointers to the environment string.
The array must be terminated by a |
|
Adds the string-based list of assignments to the environment string. Each individual assignment in the list must be ASCII NUL terminated, and the final assignment must be followed by two ASCII NULs. |
|
Get the value of an assignment from an environment string.
|
|
Make a
|
|
Put an assignment, in
|
|
Set the named variable to the given value in the environment string.
|
|
Unset the named variable in the environment string.
|