2010-02-12 21:11:35 +01:00
|
|
|
# strncmp() Author: Kees J. Bot 1 Jan 1994
|
|
|
|
|
|
|
|
# int strncmp(const char *s1, const char *s2, size_t n)
|
|
|
|
# Compare two strings.
|
|
|
|
#
|
|
|
|
|
|
|
|
.intel_syntax
|
|
|
|
|
|
|
|
.globl _strncmp
|
2010-02-13 22:28:53 +01:00
|
|
|
.globl _strcmp
|
2010-02-12 21:11:35 +01:00
|
|
|
|
|
|
|
.text
|
|
|
|
.align 16
|
|
|
|
_strncmp:
|
|
|
|
mov ecx, [esp+12] # Maximum length
|
|
|
|
jmp __strncmp # Common code
|
2010-02-13 22:28:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
.align 16
|
|
|
|
_strcmp:
|
|
|
|
mov ecx, -1 # Maximum length
|
|
|
|
jmp __strncmp # Common code
|