ReactOS  0.4.15-dev-1184-g23e04ae
tcsncat.h
Go to the documentation of this file.
1 
2 #include <stddef.h>
3 #include <tchar.h>
4 
5 _TCHAR * _tcsncat(_TCHAR * dst, const _TCHAR * src, size_t n)
6 {
7  if(n != 0)
8  {
9  _TCHAR * d = dst;
10  const _TCHAR * s = src;
11 
12  while(*d != 0) ++ d;
13 
14  do
15  {
16  if((*d = *s++) == 0) break;
17 
18  ++ d;
19  }
20  while (--n != 0);
21 
22  *d = 0;
23  }
24 
25  return dst;
26 }
27 
28 /* EOF */
GLdouble n
Definition: glext.h:7729
char _TCHAR
Definition: tchar.h:1392
_TCHAR * _tcsncat(_TCHAR *dst, const _TCHAR *src, size_t n)
Definition: tcsncat.h:5
#define d
Definition: ke_i.h:81
GLdouble s
Definition: gl.h:2039
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340