reactos/lib/sdk/crt/string/i386/tcslen.inc
Hermès Bélusca-Maïto b819608ed8 Create a branch for console restructuration work.
svn path=/branches/condrv_restructure/; revision=63104
2014-05-02 14:13:40 +00:00

30 lines
326 B
PHP

#include "tchar.h"
#include <asm.inc>
PUBLIC _tcslen
.code
_tcslen:
push edi
mov edi, [esp + 8]
xor eax, eax
test edi, edi
jz _tcslen_end
mov ecx, -1
cld
repne _tscas
not ecx
dec ecx
mov eax, ecx
_tcslen_end:
pop edi
ret
END
/* EOF */