2010-09-27 00:57:18 +02:00
|
|
|
/* strlen() Author: Kees J. Bot */
|
|
|
|
/* 1 Jan 1994 */
|
2010-02-12 21:11:35 +01:00
|
|
|
|
2010-09-27 00:57:18 +02:00
|
|
|
/* size_t strlen(const char *s) */
|
|
|
|
/* Return the length of a string. */
|
|
|
|
/* */
|
|
|
|
#include "asm.h"
|
2010-02-12 21:11:35 +01:00
|
|
|
|
2010-09-27 00:57:18 +02:00
|
|
|
ENTRY(strlen)
|
|
|
|
movl $-1, %ecx /* Unlimited length */
|
|
|
|
jmp _C_LABEL(_strnlen) /* Common code */
|