*-------------------------
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
最新推荐文章于 2024-03-24 22:57:37 发布
351

被折叠的 条评论
为什么被折叠?



