CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
env.h
Go to the documentation of this file.
1#pragma once
2
5
34
36#include <cx/cx.h>
37#include <cx/string.h>
38
39CX_C_BEGIN
40
55bool envGet(_Inout_ string* out, _In_ strref name);
56
67bool envSet(_In_ strref name, _In_opt_ strref val);
68
80bool envUnset(_In_ strref name);
81
101bool envEnum(_Inout_ hashtable* out);
102
114_meta_inline bool envExists(_In_ strref name)
115{
116 string val = 0;
117 bool ret = envGet(&val, name);
118 strDestroy(&val);
119 return ret;
120}
121
122CX_C_END
123
void strDestroy(strhandle ps)
bool envExists(strref name)
Definition env.h:114
bool envGet(string *out, strref name)
bool envSet(strref name, strref val)
bool envEnum(hashtable *out)
bool envUnset(strref name)
Hash table container with type-safe generic key-value storage.
Copy-on-write strings with automatic memory management and rope optimization.