46 for (n = 0; n <
kv->nitems; n++)
50 if (n ==
kv->nitems) {
51 if (n >=
kv->nalloc) {
59 size =
kv->nalloc *
sizeof(
char *);
92 for (n = 0; n <
kv->nitems; n++)
94 return kv->value[n][0] ?
kv->value[n] :
NULL;
111 for (n = 0; n <
kv->nitems; n++) {
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_free(void *)
Free allocated memory.
char * G_store(const char *)
Copy string to allocated memory.
void G_free_key_value(struct Key_Value *kv)
Free allocated Key_Value structure.
void G_set_key_value(const char *key, const char *value, struct Key_Value *kv)
Set value for given key.
const char * G_find_key_value(const char *key, const struct Key_Value *kv)
Find given key (case sensitive)
struct Key_Value * G_create_key_value(void)
Allocate and initialize Key_Value structure.