masm里如何使用strcpy <string.h>

来源:互联网 发布:splwow64.exe修复软件 编辑:程序博客网 时间:2024/06/05 04:55

直接上代码



.386
.model flat,stdcall
option casemap:none


include windows.inc
include user32.inc
include msvcrt.inc


includelib kernel32.lib
includelib user32.lib
includelib msvcrt.lib


.data
str1  db   256 dup(0)
str2  db    'H','e','l','l','o',0


.code
start:


invoke  crt_strcpy,offset  str1 ,offset str2
invoke  MessageBox,NULL,offset str1,NULL,MB_OK
ret


end start



在这里,crt_strcpy就是strcpy了

原创粉丝点击