minix/lib/i86/string/strlen.s
2009-11-09 10:26:00 +00:00

12 lines
271 B
ArmAsm

! 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