1 2 #include <stddef.h> 3 #include <tchar.h> 4 5 #ifdef _MSC_VER 6 #pragma function(_tcslen) 7 #endif /* _MSC_VER */ 8 9 size_t __cdecl _tcslen(const _TCHAR * str) 10 { 11 const _TCHAR * s; 12 13 if(str == 0) return 0; 14 15 for(s = str; *s; ++ s); 16 17 return s - str; 18 } 19 20 /* EOF */ 21