mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +00:00
This really needs to go in a branch. It needs heavy testing and can't coincide with the current shell32 due to PSDK interface changes
svn path=/branches/shell32_new-bringup/; revision=51893
This commit is contained in:
parent
4596e5e59b
commit
4019caae75
23116 changed files with 0 additions and 1109022 deletions
33
lib/sdk/crt/string/i386/tcsnlen.inc
Normal file
33
lib/sdk/crt/string/i386/tcsnlen.inc
Normal file
|
@ -0,0 +1,33 @@
|
|||
/* $Id: tcsnlen.inc 49591 2010-11-15 01:29:12Z tkreuzer $
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
#include <asm.inc>
|
||||
|
||||
PUBLIC _tcsnlen
|
||||
.code
|
||||
|
||||
_tcsnlen:
|
||||
push edi
|
||||
mov edi, [esp + 8]
|
||||
mov ecx, [esp + 12]
|
||||
xor eax, eax
|
||||
test ecx, ecx
|
||||
jz .L1
|
||||
mov edx, ecx
|
||||
|
||||
cld
|
||||
|
||||
repne _tscas
|
||||
|
||||
sete al
|
||||
sub edx, ecx
|
||||
sub edx, eax
|
||||
mov eax, edx
|
||||
|
||||
.L1:
|
||||
pop edi
|
||||
ret
|
||||
|
||||
END
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue