Rev | Line | |
---|
[2] | 1 | #ifndef DICO_H |
---|
| 2 | #define DICO_H |
---|
| 3 | |
---|
| 4 | #include "bool.h" |
---|
| 5 | |
---|
| 6 | //=====[ dico_t ]========================================== |
---|
| 7 | |
---|
| 8 | typedef struct dico_st |
---|
| 9 | { |
---|
| 10 | void * key; |
---|
| 11 | void * data; |
---|
| 12 | |
---|
| 13 | struct dico_st * previous; |
---|
| 14 | struct dico_st * next; |
---|
| 15 | } dico_t; |
---|
| 16 | |
---|
| 17 | //=====[ function ]======================================== |
---|
| 18 | |
---|
| 19 | dico_t * dico_add (dico_t * dico, |
---|
| 20 | void * key , |
---|
| 21 | void * data); |
---|
| 22 | |
---|
| 23 | dico_t * dico_del (dico_t * dico, |
---|
| 24 | void * key ); |
---|
| 25 | |
---|
| 26 | bool dico_present (dico_t * dico, |
---|
| 27 | void * key ); |
---|
| 28 | |
---|
| 29 | void * dico_give (dico_t * dico, |
---|
| 30 | void * key ); |
---|
| 31 | |
---|
| 32 | #endif //!DICO_H |
---|
Note: See
TracBrowser
for help on using the repository browser.