nckernel
0.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
slibc
src
strlen.c
Go to the documentation of this file.
1
#include <
sys/types.h
>
2
#include <
stdio.h
>
3
#include <
string.h
>
4
5
int
strlen
(
const
char
*str)
6
{
7
const
char
*ptr = str;
8
while
(*ptr++) {
9
}
10
return
(
int
)(ptr - str) - 1;
11
}
12
13
/* End of a file */
Generated on Thu Nov 7 2013 02:45:26 for nckernel by
1.8.4