Jacob_DiDiodato

dict.h

Feb 23rd, 2017
332
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. typedef struct dict *Dict;
  2.  
  3. /* create a new empty dictionary */
  4. Dict DictCreate(void);
  5.  
  6. /* destroy a dictionary */
  7. void DictDestroy(Dict);
  8.  
  9. /* insert a new key-value pair into an existing dictionary */
  10. void DictInsert(Dict, const char *key, const char *value);
  11.  
  12. /* return the most recently inserted value associated with a key */
  13. /* or 0 if no matching key is present */
  14. const char *DictSearch(Dict, const char *key);
  15.  
  16. /* delete the most recently inserted record with the given key */
  17. /* if there is no such record, has no effect */
  18. void DictDelete(Dict, const char *key);
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment