ocssw
V2022
|
phash.h
int phash_next(phash *h, const char **key, void **value)
Retrieves the next key-value pair in the phash. The order in which the pointers are returned shall be...
Definition: phash.c:275
const char * phash_version()
Returns the source code version and the implemented API version.
Definition: phash.c:316
int phash_size(phash *h)
Retrieves the number of key-value pairs in the hash object.
Definition: phash.c:312
int phash_set(phash *h, const char *key, void *value)
Add or overwrite a pointer, associating it with the given key.
Definition: phash.c:224
int phash_remove(phash *h, const char *key)
Remove a pointer associated with the given string.
Definition: phash.c:146
void * phash_get(phash *h, const char *key)
Find a pointer associated with the given string.
Definition: phash.c:205
int phash_rewind(phash *h)
Rewind iterator for traversing all the keys and values.
Definition: phash.c:269