source:
pair.c
@
f907cf0
Last change on this file since f907cf0 was de1c8a5, checked in by Anders Kaseorg <andersk@mit.edu>, 16 years ago | |
---|---|
|
|
File size: 372 bytes |
Rev | Line | |
---|---|---|
[160ea47] | 1 | #include "owl.h" |
2 | ||
[de1c8a5] | 3 | void owl_pair_create(owl_pair *p, char *key, char *value) { |
[160ea47] | 4 | p->key=key; |
5 | p->value=value; | |
6 | } | |
7 | ||
[de1c8a5] | 8 | void owl_pair_set_key(owl_pair *p, char *key) { |
[160ea47] | 9 | p->key=key; |
10 | } | |
11 | ||
[de1c8a5] | 12 | void owl_pair_set_value(owl_pair *p, char *value) { |
[160ea47] | 13 | p->value=value; |
14 | } | |
15 | ||
[de1c8a5] | 16 | char *owl_pair_get_key(owl_pair *p) { |
[160ea47] | 17 | return(p->key); |
18 | } | |
19 | ||
[de1c8a5] | 20 | char *owl_pair_get_value(owl_pair *p) { |
[160ea47] | 21 | return(p->value); |
22 | } |
Note: See TracBrowser
for help on using the repository browser.