Microsoft 专用
生成移动字符串 (rep movsb) 命令。
void __movsb(
unsigned char* Destination,
unsigned const char* Source,
size_t Count
);
参数
[out] Destination
要复制的目标的指针。[in] Source
要复制的源的指针。[in] Count
要复制的字节数。
要求
内部 |
体系结构 |
---|---|
__movsb |
x86, x64 |
头文件 <intrin.h>
备注
结果是第一个 Count 字节指向由 Source 复制到 Destination 字符串。
此实例只能用作内部。
示例
// movsb.cpp
// processor: x86, x64
#include <stdio.h>
#include <intrin.h>
#pragma intrinsic(__movsb)
int main()
{
unsigned char s1[100];
unsigned char s2[100] = "A big black dog.";
__movsb(s1, s2, 100);
printf_s("%s %s", s1, s2);
}