Apache 1.3 API Documentation

Routine ap_table_set

Definition:

void ap_table_set(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 value is always duplicated from the routine argument into the table's pool using ap_pstrdup(), and a pointer to the copy used; if a new entry needs to be created, the key string is copied as well. If both the key and the value are literals, use ap_table_setn() 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_setn, ap_table_unset, table

Previous: ap_table_mergen Next: ap_table_setn

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