mempcpy(3) Library Functions Manual mempcpy(3) mempcpy, wmempcpy -- LIBRARY Standard C library (libc, -lc) #define _GNU_SOURCE /* . feature_test_macros(7) */ #include void *mempcpy(void dest[restrict .n], const void src[restrict .n], size_t n); #define _GNU_SOURCE /* feature_test_macros(7) */ #include wchar_t *wmempcpy(wchar_t dest[restrict .n], const wchar_t src[restrict .n], size_t n); mempcpy() memcpy(3). n src dest, dest, , . , . wmempcpy() , wchar_t n . dest + n. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |mempcpy(), wmempcpy() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ GNU. glibc 2.1. void * combine(void *o1, size_t s1, void *o2, size_t s2) { void *result = malloc(s1 + s2); if (result != NULL) mempcpy(mempcpy(result, o1, s1), o2, s2); return result; } . memccpy(3), memcpy(3), memmove(3), wmemcpy(3) aereiae , Alexey , Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , ITriskTI , Max Is , Yuri Kozlov , ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . mempcpy(3)