projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Sync up to trunk head (r65074).
[reactos.git]
/
lib
/
sdk
/
crt
/
string
/
i386
/
tcsnlen.inc
1
2
#include "tchar.h"
3
#include <asm.inc>
4
5
PUBLIC _tcsnlen
6
.code
7
8
FUNC _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
30
ENDFUNC
31
32
END
33
/* EOF */