source: trunk/minix/lib/i386/string/strncmp.s@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 301 bytes
Line 
1! strncmp() Author: Kees J. Bot
2! 1 Jan 1994
3.sect .text; .sect .rom; .sect .data; .sect .bss
4
5! int strncmp(const char *s1, const char *s2, size_t n)
6! Compare two strings.
7!
8.sect .text
9.define _strncmp
10 .align 16
11_strncmp:
12 mov ecx, 12(esp) ! Maximum length
13 jmp __strncmp ! Common code
Note: See TracBrowser for help on using the repository browser.