source: pair.c @ b017b03

release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since b017b03 was 25fb825, checked in by Anders Kaseorg <andersk@mit.edu>, 15 years ago
Add const qualifiers for owl_pair *. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 402 bytes
RevLine 
[160ea47]1#include "owl.h"
2
[e19eb97]3void owl_pair_create(owl_pair *p, const char *key, char *value) {
[160ea47]4  p->key=key;
5  p->value=value;
6}
7
[e19eb97]8void owl_pair_set_key(owl_pair *p, const char *key) {
[160ea47]9  p->key=key;
10}
11
[de1c8a5]12void owl_pair_set_value(owl_pair *p, char *value) {
[160ea47]13  p->value=value;
14}
15
[25fb825]16const char *owl_pair_get_key(const owl_pair *p) {
[160ea47]17  return(p->key);
18}
19
[25fb825]20char *owl_pair_get_value(const owl_pair *p) {
[160ea47]21  return(p->value);
22}
Note: See TracBrowser for help on using the repository browser.