keyval.h 293 B

12345678910
  1. // Borrowed from https://github.com/b-k/21st-Century-Examples
  2. typedef struct keyval{
  3. char *key;
  4. void *value;
  5. } keyval;
  6. keyval *keyval_new(char *key, void *value);
  7. keyval *keyval_copy(keyval const *in);
  8. void keyval_free(keyval *in);
  9. int keyval_matches(keyval const *in, char const *key);