ReactOS  0.4.13-dev-257-gfabbd7c
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 n
Definition: glext.h:7729
char _TCHAR
Definition: tchar.h:1392
#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

Referenced by _tfindfirst(), _tfindnext(), _tmain(), BrowseCursor(), cmd_rename(), CommandAssoc(), CompletionCallback(), DisplayScreen(), CShellCommandSACL::Execute(), GetDirectory(), GetIpHostName(), getName(), CRegistryKey::GetNextSubkeyName(), getRegClass(), HandleCommandLine(), CCompletionMatch::Init(), LoadCursorScheme(), MakeFullPath(), RegDirectory::read_directory(), CConsole::ReadLine(), RecursiveCreateDirectory(), safestrncpy(), CMainWindow::saveImage(), SearchForExecutableSingle(), and SetProcNameString().