142165Sbostic /*- 242165Sbostic * Copyright (c) 1990 The Regents of the University of California. 335092Sbostic * All rights reserved. 435092Sbostic * 542165Sbostic * %sccs.include.redist.c% 61986Swnj */ 71986Swnj 835092Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*46144Sbostic static char sccsid[] = "@(#)strlen.c 5.5 (Berkeley) 01/26/91"; 1035092Sbostic #endif /* LIBC_SCCS and not lint */ 1135092Sbostic 12*46144Sbostic #include <sys/cdefs.h> 1342165Sbostic #include <string.h> 1442165Sbostic 1542165Sbostic size_t 1635092Sbostic strlen(str) 1742165Sbostic const char *str; 181986Swnj { 1942165Sbostic register const char *s; 201986Swnj 2142165Sbostic for (s = str; *s; ++s); 2242165Sbostic return(s - str); 231986Swnj } 2442165Sbostic 25