mempcpy(3) Library Functions Manual mempcpy(3) mempcpy, wmempcpy -- C (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 , , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . mempcpy(3)