memccpy(3) Library Functions Manual memccpy(3) memccpy - C (libc, -lc) #include void *memccpy(size_t n; void dest[restrict n], const void src[restrict n], int c, size_t n); The memccpy() function copies no more than n bytes from memory area src to memory area dest, stopping when the character c is found (c is copied). , . memccpy() dest c, NULL, c n src. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |memccpy() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001, SVr4, 4.3BSD. bcopy(3), bstring(3), memcpy(3), memmove(3), strcpy(3), strncpy(3) () aereiae , Alexey , Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , ITriskTI , Max Is , Yuri Kozlov , ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 8 2026 . memccpy(3)