Initial revision

This commit is contained in:
Ben Gras
2005-04-21 14:53:53 +00:00
commit 9865aeaa79
2264 changed files with 411685 additions and 0 deletions

12
lib/i86/string/strlen.s Executable file
View File

@@ -0,0 +1,12 @@
! strlen() Author: Kees J. Bot
! 27 Jan 1994
.sect .text; .sect .rom; .sect .data; .sect .bss
! size_t strlen(const char *s)
! Return the length of a string.
!
.sect .text
.define _strlen
_strlen:
mov cx, #-1 ! Unlimited length
jmp __strnlen ! Common code