msvcrt: Copy strlen implementation from ntdll.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
45be36130f
commit
770d3b8623
|
@ -1266,7 +1266,9 @@ int CDECL __STRINGTOLD( MSVCRT__LDOUBLE *value, char **endptr, const char *str,
|
||||||
*/
|
*/
|
||||||
MSVCRT_size_t __cdecl MSVCRT_strlen(const char *str)
|
MSVCRT_size_t __cdecl MSVCRT_strlen(const char *str)
|
||||||
{
|
{
|
||||||
return strlen(str);
|
const char *s = str;
|
||||||
|
while (*s) s++;
|
||||||
|
return s - str;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
|
|
Loading…
Reference in New Issue