跳轉到內容

C++ 程式設計/程式碼/標準 C 庫/函式/memcpy

來自 Wikibooks,開放書籍,開放世界
語法
#include <cstring>
void *memcpy( void *to, const void *from, size_t count );

memcpy() 函式從陣列 from 中複製 count 個字元到陣列 to。memcpy() 的返回值是 to。如果 tofrom 重疊,則 memcpy() 的行為未定義。

相關主題
memchr - memcmp - memmove - memset - strcpy - strlen - strncpy
華夏公益教科書