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

Go to the source code of this file.

Functions

_TCHAR_tcsncat (_TCHAR *dst, const _TCHAR *src, size_t n)
 

Function Documentation

◆ _tcsncat()

_TCHAR * _tcsncat ( _TCHAR dst,
const _TCHAR src,
size_t  n 
)

Definition at line 5 of file tcsncat.h.

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}
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
char _TCHAR
Definition: tchar.h:1392
#define d
Definition: ke_i.h:81