Apache 1.3 API Documentation

Routine ap_push_array

Definition:

void *ap_push_array(array_header *arr);
     

Usage example:

struct ae_t { 
    server_rec *s; 
} 
array_header *ah; 
struct ae_t *ae; 
 
ah = ap_make_array(p, 4, sizeof(ae_t)); 
ae = (struct ae_t *) ap_push_array(ah); 
ae->s->server_name = "foo"; 
     

Allocates more memory for the additional array element and adds it to the end of the array.

Returns a pointer to the newly-created element of arr.

See also:
ap_append_arrays, ap_array_cat, ap_copy_array, ap_copy_array_hdr, ap_make_array, array_header

Previous: ap_pstrndup Next: ap_pvsprintf

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