flat assembler
Message board for the users of flat assembler.
Index
> Windows > Usage of lstrcpy |
Author |
|
revolution 17 Aug 2005, 02:31
Code: stringI db " ",0 stringII db "test",0 push stringII ;push the address of the string push stringI ;push the address of the string call lstrcpy |
|||
17 Aug 2005, 02:31 |
|
Matriark TerVel 18 Aug 2005, 14:55
Hicel wrote: Can someone give me an example of how to use lstrcpy. I searched the forum but didn't find a solution for my problem. You could also do: Code: mov esi,stringII mov edi,stringI .sloop: movsb ; use [esi] if you don't want to copy the trailing 0 cmp byte [esi-1],0 jnz .sloop and avoid lstrcpy all together. FYI: The reason you wern't getting anything with lstrcpy is because you were dereferencing the pointers. _________________ Tim |
|||
18 Aug 2005, 14:55 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.