[go: up one dir, main page]

Menu

[ac6419]: / dictionary.h  Maximize  Restore  History

Download this file

19 lines (15 with data), 399 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#ifndef __dict
#define __dict
#include <stdlib.h>
typedef struct entry {
char *key;
char *value;
struct entry * next;
} entry;
typedef struct entry *dictionary;
dictionary add_entry(dictionary d, char *key, char *value);
void free_dictionary(dictionary d);
char *lookup_dictionary(dictionary d, char *key);
char *get_current(dictionary d);
dictionary next_entry(dictionary d);
#endif