Go forward to memchr
Go backward to index
Go up to Strings
Go to the top op libc

`memccpy'--copy memory regions with end-token check

     #include <string.h>
     void* memccpy(void *OUT, const void *IN,
         int ENDCHAR, size_t N);
This function copies up to N bytes from the memory region pointed to by
IN to the memory region pointed to by OUT.  If a byte matching the
ENDCHAR is encountered, the byte is copied and copying stops.
   If the regions overlap, the behavior is undefined.
`memccpy' returns a pointer to the first byte following the ENDCHAR in
the OUT region.  If no byte matching ENDCHAR was copied, then `NULL' is
`memccpy' is a GNU extension.
   `memccpy' requires no supporting OS subroutines.