source:
trunk/minix/lib/i386/string/strnlen.s@
9
| Last change on this file since 9 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 296 bytes | |
| Line | |
|---|---|
| 1 | ! strnlen() Author: Kees J. Bot |
| 2 | ! 1 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 | .align 16 |
| 11 | _strnlen: |
| 12 | mov ecx, 8(esp) ! Maximum length |
| 13 | jmp __strnlen ! Common code |
Note:
See TracBrowser
for help on using the repository browser.