i want to get the lenght of any string that is passed to my proc(its addr being passed)
thx
Posted on 2002-04-10 18:15:26 by Qages
Hi Qages

If pointer to string is in eax

invoke lstrlen,eax

Returns lenght of string in eax.

KetilO
Posted on 2002-04-10 18:20:15 by KetilO
thanx
Posted on 2002-04-10 18:22:43 by Qages
If you want to do it faster, use the algorith designed by Agner Fog that is in MASM32 or if you are after experimental stuff, have a look in the Algorithm forum for the string length debate.

Regards,

hutch@movsd.com
Posted on 2002-04-10 18:46:21 by hutch--