bglibs: envstr.h Source File

bglibs

envstr.h
1 #ifndef BGLIBS__STR__ENV__H__
2 #define BGLIBS__STR__ENV__H__
3
4 struct str;
5
16 extern const char* envstr_find(const struct str* env, const char* var, long varlen);
17 extern const char* envstr_get(const struct str* env, const char* var);
18 extern int envstr_set(struct str* env, const char* var, const char* val, int overwrite);
19 extern void envstr_unset(struct str* env, const char* var);
20 extern int envstr_put(struct str* env, const char* asgn, int overwrite);
21 extern int envstr_from_array(struct str* env, char** array, int overwrite);
22 extern int envstr_from_string(struct str* env, const char* s, int overwrite);
23 extern char** envstr_make_array(const struct str* env);
24
27 #endif
str::s
char * s
Definition: str.h:36
envstr_put
int envstr_put(struct str *env, const char *asgn, int overwrite)
Definition: env_put.c:9
envstr_from_array
int envstr_from_array(struct str *env, char **array, int overwrite)
Definition: env_from_array.c:9
envstr_make_array
char ** envstr_make_array(const struct str *env)
Definition: env_make_array.c:11
envstr_find
const char * envstr_find(const struct str *env, const char *var, long varlen)
Definition: env_find.c:9
envstr_unset
void envstr_unset(struct str *env, const char *var)
Definition: env_unset.c:6
envstr_from_string
int envstr_from_string(struct str *env, const char *s, int overwrite)
Definition: env_from_string.c:8
envstr_get
const char * envstr_get(const struct str *env, const char *var)
Definition: env_get.c:7
str
Definition: str.h:30
envstr_set
int envstr_set(struct str *env, const char *var, const char *val, int overwrite)
Definition: env_set.c:6