memccpy(3) Library Functions Manual memccpy(3) memccpy - Standard C library (libc, -lc) #include void *memccpy(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 , , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux man-pages 6.12 31 2024 . memccpy(3)