1 2 #include <tchar.h> 3 4 #if defined(_MSC_VER) 5 #pragma function(_tcscmp) 6 #endif /* _MSC_VER */ 7 8 int _tcscmp(const _TCHAR* s1, const _TCHAR* s2) 9 { 10 while(*s1 == *s2) 11 { 12 if(*s1 == 0) return 0; 13 14 s1 ++; 15 s2 ++; 16 } 17 18 return *s1 - *s2; 19 } 20 21 /* EOF */ 22