00001 #ifndef BGLIBS__STR__ENV__H__ 00002 #define BGLIBS__STR__ENV__H__ 00003 00004 struct str; 00005 00016 extern const char* envstr_find(const struct str* env, const char* var, long varlen); 00017 extern const char* envstr_get(const struct str* env, const char* var); 00018 extern int envstr_set(struct str* env, const char* var, const char* val, int overwrite); 00019 extern void envstr_unset(struct str* env, const char* var); 00020 extern int envstr_put(struct str* env, const char* asgn, int overwrite); 00021 extern int envstr_from_array(struct str* env, char** array, int overwrite); 00022 extern int envstr_from_string(struct str* env, const char* s, int overwrite); 00023 extern char** envstr_make_array(const struct str* env); 00024 00027 #endif