minix/lib/libc/arch/i386/string/strnlen.S
2010-03-03 14:27:30 +00:00

12 lines
271 B
ArmAsm

/* strnlen() Author: Kees J. Bot */
/* 1 Jan 1994 */
/* size_t strnlen(const char *s, size_t n) */
/* Return the length of a string. */
/* */
.text
.globl _strnlen
.balign 16
_strnlen:
movl 8(%esp), %ecx /* Maximum length */
jmp __strnlen /* Common code */