xref: /reactos/sdk/lib/crt/string/i386/tcsnlen.inc (revision ba3f0743)
1
2#include "tchar.h"
3#include <asm.inc>
4
5PUBLIC _tcsnlen
6.code
7
8FUNC _tcsnlen
9    FPO 0, 2, 1, 1, 0, FRAME_FPO
10    push edi
11    mov edi, [esp + 8]
12    mov ecx, [esp + 12]
13    xor eax, eax
14    test ecx, ecx
15    jz .L1
16    mov edx, ecx
17
18    cld
19
20    repne _tscas
21
22    sete al
23    sub edx, ecx
24    sub edx, eax
25    mov eax, edx
26
27.L1:
28    pop edi
29    ret
30ENDFUNC
31
32END
33/* EOF */
34