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