4 ms·
>STRCPY opcode. whats wrong with rep movsb?
by rasz 1y ago
>STRCPY opcode.
whats wrong with rep movsb?
- saagarjha 1y agoYou'd need to run strlen first.
- joezydeco 1y agoReal men just blast through memory until hitting a zero. If it's there at all.
- cesarb 1y ago> You'd need to run strlen first. I might be a bit rusty in my x86 assembly, but wouldn't "repnz movsb" be the x86 strcpy opcode, for zero-terminated strings?
- rasz 1y agoIf you care at least a little about buffer overflows You will run one anyway.
- saagarjha 1y agoIf you want a strlen+memcpy you are more than welcome to call it yourself