File: pair.c

package info (click to toggle)
owl 2.1.8-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,816 kB
  • ctags: 3,421
  • sloc: ansic: 34,004; perl: 246; makefile: 140; sh: 43
file content (22 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "owl.h"

void owl_pair_create(owl_pair *p, void *key, void *value) {
  p->key=key;
  p->value=value;
}

void owl_pair_set_key(owl_pair *p, void *key) {
  p->key=key;
}

void owl_pair_set_value(owl_pair *p, void *value) {
  p->value=value;
}

void *owl_pair_get_key(owl_pair *p) {
  return(p->key);
}

void *owl_pair_get_value(owl_pair *p) {
  return(p->value);
}