Definition:
char *ap_cpystrn(char *buf, const char *str, size_t numbytes);
Usage example:
char *ap_coredump_dir;
char *ap_server_root;
ap_cpystrn(ap_coredump_dir, ap_server_root, sizeof(ap_coredump_dir));
Copies at most numbytes of str to buf. Differs from strncpy() in that buf is always null terminated, but is not null filled. Therefore, buf should always be at least numbytes + 1 bytes long. Returns a pointer to the terminating '\0'.
Previous: ap_count_dirs
Next: ap_create_environment
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)