source:
trunk/minix/lib/i386/string/strcmp.s@
10
| Last change on this file since 10 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 285 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | ! strcmp() Author: Kees J. Bot |
| 2 | ! 1 Jan 1994 | |
| 3 | .sect .text; .sect .rom; .sect .data; .sect .bss | |
| 4 | ||
| 5 | ! int strcmp(const char *s1, const char *s2) | |
| 6 | ! Compare two strings. | |
| 7 | ! | |
| 8 | .sect .text | |
| 9 | .define _strcmp | |
| 10 | .align 16 | |
| 11 | _strcmp: | |
| 12 | mov ecx, -1 ! Unlimited length | |
| 13 | jmp __strncmp ! Common code |
Note:
See TracBrowser
for help on using the repository browser.