Initial revision
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
! strnlen() Author: Kees J. Bot
|
||||
! 27 Jan 1994
|
||||
.sect .text; .sect .rom; .sect .data; .sect .bss
|
||||
|
||||
! size_t strnlen(const char *s, size_t n)
|
||||
! Return the length of a string.
|
||||
!
|
||||
.sect .text
|
||||
.define _strnlen
|
||||
_strnlen:
|
||||
mov bx, sp
|
||||
mov cx, 4(bx) ! Maximum length
|
||||
jmp __strnlen ! Common code
|
||||
Reference in New Issue
Block a user