mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
missed this file
svn path=/trunk/; revision=238
This commit is contained in:
parent
2c6653bf1c
commit
6752566cd2
1 changed files with 14 additions and 0 deletions
14
reactos/lib/ntdll/string/strlen.c
Normal file
14
reactos/lib/ntdll/string/strlen.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
size_t
|
||||||
|
strlen(const char *str)
|
||||||
|
{
|
||||||
|
const char *s;
|
||||||
|
|
||||||
|
if (str == 0)
|
||||||
|
return 0;
|
||||||
|
for (s = str; *s; ++s);
|
||||||
|
return s-str;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue