#include <stdint.h>
#include "../error/error.h"
Go to the source code of this file.
Typedefs | |
typedef struct nps_htab_t | nps_HTAB |
Functions | |
nps_HTAB * | nps_htab_new (int64_t sz) |
nps_HTAB * | nps_htab_new_w_free (int64_t sz, void(*free_key)(void *), void(*free_value)(void *)) |
void | nps_htab_del (nps_HTAB *o) |
int64_t | nps_htab_len (nps_HTAB *o) |
int64_t | nps_htab_alloc_size (nps_HTAB *o) |
void * | nps_htab_get (nps_HTAB *o, const char const *key_string) |
int | nps_htab_set (nps_HTAB *o, nps_error_t *err, char *restrict key_string, void *value) |
int | nps_htab_remove (nps_HTAB *o, const char const *restrict key_string) |
typedef struct nps_htab_t nps_HTAB |
int64_t nps_htab_alloc_size | ( | nps_HTAB * | o | ) |
void nps_htab_del | ( | nps_HTAB * | o | ) |
void* nps_htab_get | ( | nps_HTAB * | o, | |
const char const * | key_string | |||
) |
int64_t nps_htab_len | ( | nps_HTAB * | o | ) |
nps_HTAB* nps_htab_new | ( | int64_t | sz | ) |
nps_HTAB* nps_htab_new_w_free | ( | int64_t | sz, | |
void(*)(void *) | free_key, | |||
void(*)(void *) | free_value | |||
) |
int nps_htab_remove | ( | nps_HTAB * | o, | |
const char const *restrict | key_string | |||
) |
int nps_htab_set | ( | nps_HTAB * | o, | |
nps_error_t * | err, | |||
char *restrict | key_string, | |||
void * | value | |||
) |