1 /* 2 * Copyright (C) 1991, 1992 Linus Torvalds 3 */ 4 5 #include <xen/string.h> 6 7 /** 8 * strlen - Find the length of a string 9 * @s: The string to be sized 10 */ size_t(strlen)11size_t (strlen)(const char * s) 12 { 13 const char *sc; 14 15 for (sc = s; *sc != '\0'; ++sc) 16 /* nothing */; 17 return sc - s; 18 } 19 20 /* 21 * Local variables: 22 * mode: C 23 * c-file-style: "BSD" 24 * c-basic-offset: 8 25 * tab-width: 8 26 * indent-tabs-mode: t 27 * End: 28 */ 29