Jacob_DiDiodato icon

dict.h

Jacob_DiDiodato | PRO | 02/24/17 12:40:06 AM UTC | 0 ⭐ | 292 👁️ | Never ⏰ | []
C |

580 B

|

None

|

0 👍

/

0 👎

typedef struct dict *Dict;
 
/* create a new empty dictionary */
Dict DictCreate(void);
 
/* destroy a dictionary */
void DictDestroy(Dict);
 
/* insert a new key-value pair into an existing dictionary */
void DictInsert(Dict, const char *key, const char *value);
 
/* return the most recently inserted value associated with a key */
/* or 0 if no matching key is present */
const char *DictSearch(Dict, const char *key);
 
/* delete the most recently inserted record with the given key */
/* if there is no such record, has no effect */
void DictDelete(Dict, const char *key);

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎