barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 19bab8e was
160ea47,
checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
|
added pair.c to the repository
|
-
Property mode set to
100644
|
File size:
372 bytes
|
Rev | Line | |
---|
[160ea47] | 1 | #include "owl.h" |
---|
| 2 | |
---|
| 3 | void owl_pair_create(owl_pair *p, void *key, void *value) { |
---|
| 4 | p->key=key; |
---|
| 5 | p->value=value; |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | void owl_pair_set_key(owl_pair *p, void *key) { |
---|
| 9 | p->key=key; |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | void owl_pair_set_value(owl_pair *p, void *value) { |
---|
| 13 | p->value=value; |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | void *owl_pair_get_key(owl_pair *p) { |
---|
| 17 | return(p->key); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | void *owl_pair_get_value(owl_pair *p) { |
---|
| 21 | return(p->value); |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.