mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:13:00 +00:00
[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3
Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
This commit is contained in:
parent
f1b60c66f0
commit
04e0dc4a7a
568 changed files with 115483 additions and 0 deletions
42
sdk/lib/ucrt/string/arm/strlen.c
Normal file
42
sdk/lib/ucrt/string/arm/strlen.c
Normal file
|
@ -0,0 +1,42 @@
|
|||
/***
|
||||
*strlen.c - contains strlen() routine
|
||||
*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
*
|
||||
*Purpose:
|
||||
* strlen returns the length of a null-terminated string,
|
||||
* not including the null byte itself.
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#pragma function(strlen)
|
||||
|
||||
/***
|
||||
*strlen - return the length of a null-terminated string
|
||||
*
|
||||
*Purpose:
|
||||
* Finds the length in bytes of the given string, not including
|
||||
* the final null character.
|
||||
*
|
||||
*Entry:
|
||||
* const char * str - string whose length is to be computed
|
||||
*
|
||||
*Exit:
|
||||
* length of the string "str", exclusive of the final null byte
|
||||
*
|
||||
*Exceptions:
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
size_t __cdecl strlen (
|
||||
const char * str
|
||||
)
|
||||
{
|
||||
const char *eos = str;
|
||||
|
||||
while( *eos++ ) ;
|
||||
|
||||
return( eos - str - 1 );
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue