summaryrefslogtreecommitdiff
path: root/src/02/04/tuple.c
blob: 20e26edbcceb695e3f09bdbdc3a3491f75c470f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "stdlib.h"
#include "tuple.h"

Tuple *tuple_initialize(int key, void *value)
{
  Tuple *tuple = malloc(sizeof(Tuple));
  tuple->key = key;
  tuple->value = value;
  return tuple;
}

void tuple_destroy(Tuple *tuple)
{
  return free(tuple);
}