Apache 1.3 API Documentation

Routine ap_pstrndup

Definition:

char *ap_pstrndup(struct pool *p, const char *s, int n);
     

Usage example:

No examples available.
     

Allocates n + 1 bytes of memory and copies up to n characters from s. The result is NUL-terminated.

Returns NULL if s is NULL, otherwise returns a pointer to the (possibly partly) copied memory.

See also:
ap_bytes_in_pool, ap_clear_pool, ap_destroy_pool, ap_find_pool, ap_make_sub_pool, ap_palloc, ap_pcalloc, ap_pclosedir, ap_pclosef, ap_pclosesocket, ap_pduphostent, ap_pfclose, ap_pfdopen, ap_pfopen, ap_pgethostbyname, ap_pool, ap_pool_is_ancestor, ap_pool_join, ap_popendir, ap_popenf, ap_pregcomp, ap_pregfree, ap_psocket, ap_pstrcat, ap_pstrdup, pool

Previous: ap_pstrdup Next: ap_push_array

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