c内嵌汇编实现库函数系列-(strlen函数) int mystrlen(char* str){ int a=0; _asm{ mov edi,str; mov al,0; mov ecx,-1; repnz scasb; mov eax,-1; sub eax,ecx; sub eax,1; mov a,eax; } return a; }