Simple data structures / objects in plain C Snapshot
|
Go to the source code of this file.
Classes | |
struct | tagNAMEVALUE_HASH_ENTRY |
struct | tagPROPERTIES |
Defines | |
#define | MAKE_PROPERTIES_DECIMAL_INT_GET(type) |
#define | MAKE_PROPERTIES_HEX_INT_GET(type) |
Typedefs | |
typedef struct tagNAMEVALUE_HASH_ENTRY | NAMEVALUE_HASH_ENTRY |
typedef struct tagPROPERTIES | PROPERTIES |
Functions | |
int | PROPERTIES_init (PROPERTIES *props, int num_buckets) |
initialise the object | |
int | PROPERTIES_load (PROPERTIES *props, const char *file_name) |
loads properties from file, a java properties text file. | |
void | PROPERTIES_free (PROPERTIES *props) |
free a properties object | |
int | PROPERTIES_put (PROPERTIES *props, const char *name, const char *value) |
add a name to value mapping | |
const char * | PROPERTIES_get (PROPERTIES *props, const char *name) |
get the value for a name, return 0 if no such mapping exists. |