Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dictionary.h File Reference

a dictionary data structure. list of (key,data) couples More...

Go to the source code of this file.

Data Structures

struct  dictionary_t
 a dictionary More...


Functions

void * dictionary_find (struct dictionary_t *d, char *key)
 find an element

int dictionary_remove (struct dictionary_t *d, char *key)
 remove the element associated with key

int dictionary_add (struct dictionary_t *d, char *key, void *data)
 adds the element and associats it with the key


Detailed Description

a dictionary data structure. list of (key,data) couples

Author:
Enrico Tassi   <sorry guy>

Definition in file dictionary.h.


Function Documentation

int dictionary_add struct dictionary_t d,
char *  key,
void *  data
 

adds the element and associats it with the key

Parameters:
d the dictionary
key the key
data the element
Returns:
0 on success

void* dictionary_find struct dictionary_t d,
char *  key
 

find an element

Parameters:
d the dictionary
key the key
Returns:
the data associated with key or NULL

int dictionary_remove struct dictionary_t d,
char *  key
 

remove the element associated with key

Parameters:
d the dictionary
key the key
Returns:
0 on success


Generated on Wed May 5 15:48:04 2004 for LiberoPOPs by doxygen 1.3.6-20040222