Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
378 B

#include "keyval.h"
extern void *dictionary_not_found;
typedef struct dictionary {
keyval **pairs;
size_t length;
} dictionary;
dictionary *dictionary_new(void);
dictionary *dictionary_copy(dictionary *in);
void dictionary_free(dictionary *in);
void dictionary_add(dictionary *in, char *key, void *value);
void *dictionary_find(const dictionary *in, const char *key);