minix/lib/libc/arch/i386/string/strnlen.S

13 lines
271 B
ArmAsm
Raw Normal View History

/* 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 */