Subversion Repositories Kolibri OS

Rev

Rev 1408 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1408 serge 1
# strncmp() Author: Kees J. Bot 1 Jan 1994
2
 
3
# int strncmp(const char *s1, const char *s2, size_t n)
4
#     Compare two strings.
5
#
6
 
7
.intel_syntax
8
 
9
.globl _strncmp
1412 serge 10
.globl _strcmp
1408 serge 11
 
12
.text
13
           .align  16
14
_strncmp:
15
           mov     ecx, [esp+12]    # Maximum length
16
           jmp     __strncmp        # Common code
1412 serge 17
 
18
 
19
           .align  16
20
_strcmp:
21
           mov     ecx, -1          # Maximum length
22
           jmp     __strncmp        # Common code