ap_table_merge — merge a new value into a table
void ap_table_merge(table *t, const char *key, const char *value)
If an entry already exists for key
in the table,
value
is appended to the existing value, separated
by a comma and a space. Otherwise, a new entry is created, as in
table_set
. Note that if multiple instances of
key
exist in the table, only the first is
affected.
pool *p; /* Assumed to be set elsewhere */ table *t; char *v; t=make_table(1); table_set(t,"somekey","Hello"); table_merge(t,"somekey","world!"); v=table_get(t,"somekey"); /* v now contains "Hello, world!" */