Lines Matching defs:value
42 * kva_match(): Given a key-value array and a key, return a pointer to the
43 * value that matches the key.
57 return (data[i].value);
82 if (data[i].value != NULL) {
83 free(data[i].value);
84 data[i].value = NULL;
92 * _kva_free_value(): Free up memory (value) for all the occurrences of
109 if (strcmp(data->key, key) == 0 && data->value != NULL) {
110 free(data->value);
111 data->value = NULL;
118 * new_kva(): Allocate a key-value array.
137 * _str2kva(): Given a string (s) of key-value pairs, separated by delimeter
138 * (del), place the values into the key value array (nkva).
188 data[nkva->length].value = _do_unescape(last_key);
197 * _kva2str(): Given an array of key-value pairs, place them into a string
219 if (data[i].value != NULL) {
221 data[i].key, ass, data[i].value, del);
233 _insert2kva(kva_t *kva, char *key, char *value)
244 if (data[i].value != NULL)
245 free(data[i].value);
246 data[i].value = _strdup_null(value);
274 new_data[i].value = _strdup_null(old_data[i].value);
405 data[i].value != NULL ? data[i].value : "NULL");