mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
20 lines
252 B
C
20 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 */
|