source:
trunk/minix/lib/i86/string/strnlen.s@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 296 bytes |
Line | |
---|---|
1 | ! strnlen() Author: Kees J. Bot |
2 | ! 27 Jan 1994 |
3 | .sect .text; .sect .rom; .sect .data; .sect .bss |
4 | |
5 | ! size_t strnlen(const char *s, size_t n) |
6 | ! Return the length of a string. |
7 | ! |
8 | .sect .text |
9 | .define _strnlen |
10 | _strnlen: |
11 | mov bx, sp |
12 | mov cx, 4(bx) ! Maximum length |
13 | jmp __strnlen ! Common code |
Note:
See TracBrowser
for help on using the repository browser.