![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 /* 0003 * Copied from linux/lib/string.c 0004 * 0005 * Copyright (C) 1991, 1992 Linus Torvalds 0006 */ 0007 0008 #include <stddef.h> 0009 0010 /** 0011 * strlen - Find the length of a string 0012 * @s: The string to be sized 0013 */ 0014 size_t test_strlen(const char *s) 0015 { 0016 const char *sc; 0017 0018 for (sc = s; *sc != '\0'; ++sc) 0019 /* nothing */; 0020 return sc - s; 0021 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |