Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentcsncmp.h
Go to the documentation of this file.
00001 /* $Id: tcsncmp.h 30283 2007-11-08 21:06:20Z fireball $ 00002 */ 00003 00004 #include <stddef.h> 00005 #include <tchar.h> 00006 00007 int _tcsncmp(const _TCHAR * s1, const _TCHAR * s2, size_t n) 00008 { 00009 if(n == 0) return 0; 00010 00011 do 00012 { 00013 if(*s1 != *s2 ++) return *s1 - *-- s2; 00014 if(*s1 ++ == 0) break; 00015 } 00016 while (-- n != 0); 00017 00018 return 0; 00019 } 00020 00021 /* EOF */ Generated on Sun May 27 2012 04:36:46 for ReactOS by
1.7.6.1
|