Apache 1.3 API Documentation

Routine ap_table_setn

Definition:

void ap_table_setn(table *t, const char *k, const char *val);
     

Usage example:

No examples available.
     

Sets the entry in table t with key k to have value val. If no such entry exists, one is created. If an entry does exist, its value is replaced. If there are multiple entries with key k, the first one is modified, and all the other matching entries are deleted from the table. The key and value pointers from the argument list are inserted directly into the table, so the caller must not modify them after calling this routine. If either the key or the value cannot be guaranteed immutable, you should use ap_table_set() (q.v.) instead.

See also:
ap_clear_table, ap_copy_table, ap_make_table, ap_overlay_tables, ap_table_add, ap_table_addn, ap_table_do, ap_table_get, ap_table_merge, ap_table_mergen, ap_table_set, ap_table_unset, table

Previous: ap_table_set Next: ap_table_unset

Table of Contents (Routines, Structures, Data Cells, Constants)