ReactOS 0.4.15-dev-8102-g108db8f
tcsncmp.h File Reference
#include <stddef.h>
#include <tchar.h>
Include dependency graph for tcsncmp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int _tcsncmp (const _TCHAR *s1, const _TCHAR *s2, size_t n)
 

Function Documentation

◆ _tcsncmp()

int _tcsncmp ( const _TCHAR s1,
const _TCHAR s2,
size_t  n 
)

Definition at line 9 of file tcsncmp.h.

10{
11 if(n == 0) return 0;
12
13 do
14 {
15 if(*s1 != *s2 ++) return *s1 - *-- s2;
16 if(*s1 ++ == 0) break;
17 }
18 while (-- n != 0);
19
20 return 0;
21}
GLdouble n
Definition: glext.h:7729
struct S1 s1
struct S2 s2