master
 1#include "tuple.h"
 2#include "stdlib.h"
 3
 4/**
 5 * Initializes a new tuple bound to a key/value pair.
 6 *
 7 * @param key The key to bind to
 8 * @param value The value to bind to
 9 * @return Returns a new Tuple
10 */
11Tuple *tuple_initialize(int key, void *value) {
12  Tuple *tuple = malloc(sizeof(Tuple));
13  tuple->key = key;
14  tuple->value = value;
15  return tuple;
16}
17
18/**
19 * A destructor for a Tuple
20 *
21 * @param tuple The tuple to free
22 */
23void tuple_destroy(Tuple *tuple) { return free(tuple); }