Apache 1.3 API Documentation

Routine ap_array_pstrcat

Definition:

char *ap_array_pstrcat(pool *p, const array_header *arr, const char sep);
     

Usage example:

lang = ap_array_pstrcat(r->pool, variant->content_languages, ',');
     

This routine returns a pointer to a string composed of all the values in the specified array, separated by the designated delimiter character. The string is allocated from the specified pool.

Note: This routine assumes that each array element consists simply of a char * pointer (such as created by a ap_make_array(p, 4, sizeof(char *)) call). It cannot be used with other or more complex types of array elements; results are unpredictable, and a mmory fault is almost guaranteed if used with such.


Previous: ap_array_cat Next: ap_auth_name

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