*------------------------- memmove 语法: #include <string.h> void *memmove( void *to, const void *from, size_t count ); The memmove() function is identical to memcpy(), except that it works even if to and from overlap. 功能: 与mencpy相同,不同的是当to 和 from 重叠,函数仍能正常工作。 ----------------------------*/ #include <iostream> using namespace std; int main( void ) { char* str = "ok2002.com, C++ program"; const int len = strlen( str ) + 1 ; char buf[len]; memmove( buf, str, len ); buf[len] = '\0'; cout << buf << endl; system( "pause" ); return 0; }
menmove
最新推荐文章于 2022-09-13 16:10:11 发布