2010-03-03 15:27:30 +01:00
|
|
|
/* strlen() Author: Kees J. Bot */
|
|
|
|
/* 1 Jan 1994 */
|
|
|
|
|
|
|
|
/* size_t strlen(const char *s) */
|
|
|
|
/* Return the length of a string. */
|
|
|
|
/* */
|
2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
|
|
|
|
|
|
|
ENTRY(strlen)
|
2010-03-03 15:27:30 +01:00
|
|
|
movl $-1, %ecx /* Unlimited length */
|
2010-08-17 18:44:07 +02:00
|
|
|
jmp _C_LABEL(_strnlen) /* Common code */
|