ReactOS 0.4.16-dev-336-gb667d82
tcsncpy.h File Reference
#include <stddef.h>
#include <tchar.h>
Include dependency graph for tcsncpy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ _tcsncpy()

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

Definition at line 9 of file tcsncpy.h.

10{
11 if(n != 0)
12 {
13 _TCHAR * d = dst;
14 const _TCHAR * s = src;
15
16 do
17 {
18 if((*d ++ = *s ++) == 0)
19 {
20 while (-- n != 0) *d ++ = 0;
21 break;
22 }
23 }
24 while(-- n != 0);
25 }
26
27 return dst;
28}
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