MEMCCPY(3)

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

SYNOPSIS
     #include <string.h>
     void* memccpy(void *OUT, const void *IN,
         int ENDCHAR, size_t N);

DESCRIPTION
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.

RETURNS
`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 returned.

PORTABILITY
`memccpy' is a GNU extension.
   `memccpy' requires no supporting OS subroutines.

SEE ALSO
memccpy is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.