ReactOS
0.4.16-dev-2110-ge3521eb
strlen.c
Go to the documentation of this file.
1
/***
2
*strlen.c - contains strlen() routine
3
*
4
* Copyright (c) Microsoft Corporation. All rights reserved.
5
*
6
*Purpose:
7
* strlen returns the length of a null-terminated string,
8
* not including the null byte itself.
9
*
10
*******************************************************************************/
11
12
#include <string.h>
13
14
#pragma function(strlen)
15
16
/***
17
*strlen - return the length of a null-terminated string
18
*
19
*Purpose:
20
* Finds the length in bytes of the given string, not including
21
* the final null character.
22
*
23
*Entry:
24
* const char * str - string whose length is to be computed
25
*
26
*Exit:
27
* length of the string "str", exclusive of the final null byte
28
*
29
*Exceptions:
30
*
31
*******************************************************************************/
32
33
size_t
__cdecl
strlen
(
34
const
char
*
str
35
)
36
{
37
const
char
*eos =
str
;
38
39
while
( *eos++ ) ;
40
41
return
( eos -
str
- 1 );
42
}
__cdecl
#define __cdecl
Definition:
corecrt.h:121
strlen
_ACRTIMP size_t __cdecl strlen(const char *)
Definition:
string.c:1592
str
const WCHAR * str
Definition:
rpc_transport.c:2696
sdk
lib
ucrt
string
arm
strlen.c
Generated on Thu Jan 8 2026 06:16:18 for ReactOS by
1.9.6