mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-29 17:59:50 +03:00
12 lines
270 B
ArmAsm
12 lines
270 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. */
|
||
|
/* */
|
||
|
#include "asm.h"
|
||
|
|
||
|
ENTRY(strnlen)
|
||
|
movl 8(%esp), %ecx /* Maximum length */
|
||
|
jmp _C_LABEL(_strnlen) /* Common code */
|