mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
21 lines
260 B
C
21 lines
260 B
C
/* $Id$
|
|
*/
|
|
|
|
#include <stddef.h>
|
|
#include <tchar.h>
|
|
|
|
int _tcsncmp(const _TCHAR * s1, const _TCHAR * s2, size_t n)
|
|
{
|
|
if(n == 0) return 0;
|
|
|
|
do
|
|
{
|
|
if(*s1 != *s2 ++) return *s1 - *-- s2;
|
|
if(*s1 ++ == 0) break;
|
|
}
|
|
while (-- n != 0);
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* EOF */
|