Skip to content

Commit

Permalink
[api] Include for env_set
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Mar 28, 2013
1 parent a63fb6c commit 5c84706
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/env.h
Expand Up @@ -10,6 +10,19 @@ extern "C" {
*/
char* env_get(char** env, char* name);

/*
* Gets number of env pairs from `env`.
*/
unsigned int env_length(char** env);

/*
* Sets environment variable called `name` to value `value` in list of env
* pairs `env`.
* Please note that this needs pointer to `env`, as reallocation might be
* needed.
*/
void env_set(char*** env, char* name, char* value);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 5c84706

Please sign in to comment.