memccpy3
Copy bytes until character found
Usage
#include <string.h>
void *
memccpy(void * restrict dst, const void * restrict src, int c, size_t len);
Library
Standard C Library (libc, -lc)
Overview
The memccpy() function copies bytes from object src to object dst. If the character c (as converted to an unsigned char) occurs in the object src, the copy stops and a pointer to the byte after the copy of c in the object dst is returned. Otherwise, len bytes are copied, and a NULL pointer is returned. If src and dst overlap, behavior is undefined.
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 42 times.