ReactOS  0.4.15-dev-2956-g61e7ea5
wcsxfrm.c File Reference
#include <precomp.h>
Include dependency graph for wcsxfrm.c:

Go to the source code of this file.

Functions

size_t CDECL wcsxfrm (wchar_t *dst, const wchar_t *src, size_t n)
 

Function Documentation

◆ wcsxfrm()

size_t CDECL wcsxfrm ( wchar_t dst,
const wchar_t src,
size_t  n 
)

Definition at line 16 of file wcsxfrm.c.

17 {
18  size_t r = 0;
19  int c;
20 
21  if (n != 0) {
22  while ((c = *src++) != 0)
23  {
24  r++;
25  if (--n == 0)
26  {
27  while (*src++ != 0)
28  r++;
29  break;
30  }
31  *dst++ = c;
32  }
33  *dst = 0;
34  }
35  return r;
36 }
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLdouble n
Definition: glext.h:7729
const GLubyte * c
Definition: glext.h:8905
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
#define c
Definition: ke_i.h:80