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.
Previous: ap_pstrdup
Next: ap_push_array
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)