assert(key != NULL && value != NULL);
for(; *ptr; ptr = &( (*ptr) -> next) )
if(!strcasecmp(key, (*ptr) -> key ) ) {
if (flags & REPLACE_KEY) {
assert(key != NULL && value != NULL);
for(; *ptr; ptr = &( (*ptr) -> next) )
if(!strcasecmp(key, (*ptr) -> key ) ) {
if (flags & REPLACE_KEY) {