1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Computer Consoles Inc. 9 */ 10 11#if defined(LIBC_SCCS) && !defined(lint) 12 .asciz "@(#)strlen.s 8.1 (Berkeley) 06/04/93" 13#endif /* LIBC_SCCS and not lint */ 14 15/* 16 * Returns the number of 17 * non-NULL bytes in string argument. 18 */ 19 20#include "DEFS.h" 21 22ENTRY(strlen, 0) 23 movl 4(fp),r0 24 movl r0,r1 25 cmps2 26 subl2 4(fp),r0 27 ret 28