Rev 1412 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1412 | Rev 1627 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | # strncmp() Author: Kees J. Bot 1 Jan 1994 |
1 | /* strncmp() Author: Kees J. Bot */ |
- | 2 | /* 1 Jan 1994 */ |
|
Line 2... | Line 3... | ||
2 | 3 | ||
3 | # int strncmp(const char *s1, const char *s2, size_t n) |
4 | /* int strncmp(const char *s1, const char *s2, size_t n) */ |
4 | # Compare two strings. |
- | |
5 | # |
- | |
6 | - | ||
7 | .intel_syntax |
- | |
8 | - | ||
9 | .globl _strncmp |
- | |
10 | .globl _strcmp |
- | |
11 | 5 | /* Compare two strings. */ |
|
12 | .text |
6 | /* */ |
13 | .align 16 |
- | |
14 | _strncmp: |
- | |
15 | mov ecx, [esp+12] # Maximum length |
- | |
16 | jmp __strncmp # Common code |
- | |
17 | 7 | #include "asm.h" |
|
18 | - | ||
19 | .align 16 |
8 | |
20 | _strcmp: |
9 | ENTRY(strncmp) |
21 | mov ecx, -1 # Maximum length |
10 | movl 12(%esp), %ecx /* Maximum length */ |