Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
232 B

  1. typedef struct keyval {
  2. char *key;
  3. void *value;
  4. } keyval;
  5. keyval *keyval_new(char *key, void *value);
  6. keyval *keyval_copy(const keyval *in);
  7. void keyval_free(keyval *in);
  8. int keyval_matches(const keyval *in, const char *key);