Name
afc_dictionary_set -- Sets a key in the dictionary
Synopsis
int afc_dictionary_set
( struct afc_dictionary * dictionary, char * key, void * data );
Description
Use this function to add a new key to the current dictionary. This method works in two different ways:
1. If the passed key is already set in the dictionary, the new data will replace the existing one
2. If the key is not set yet, a new key is created and inserted inside the dictionary, and the data will be set.
Inputs
- dictionary
Pointer to a valid afc_dictionary instance.
- key
afc_string_new containing the key of the item in the dictionary.
- data
Data to assign to this key.
Result
should be AFC_ERR_NO_ERROR