mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 03:48:17 +00:00
21 lines
252 B
C
21 lines
252 B
C
|
|
#include <stddef.h>
|
|
#include <tchar.h>
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma function(_tcslen)
|
|
#endif /* _MSC_VER */
|
|
|
|
size_t __cdecl _tcslen(const _TCHAR * str)
|
|
{
|
|
const _TCHAR * s;
|
|
|
|
if(str == 0) return 0;
|
|
|
|
for(s = str; *s; ++ s);
|
|
|
|
return s - str;
|
|
}
|
|
|
|
/* EOF */
|