ReactOS  0.4.15-dev-3163-gf17c2c0
wcsxfrm.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS system libraries
4  * FILE: lib/sdk/crt/wstring/wcsxfrm.c
5  * PURPOSE: Unknown
6  * PROGRAMER: Unknown
7  * UPDATE HISTORY:
8  * 25/11/05: Added license header
9  */
10 
11 #include <precomp.h>
12 
13 /*
14  * @implemented
15  */
16 size_t CDECL wcsxfrm(wchar_t *dst,const wchar_t *src, size_t n)
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 }
size_t CDECL wcsxfrm(wchar_t *dst, const wchar_t *src, size_t n)
Definition: wcsxfrm.c:16
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
#define CDECL
Definition: compat.h:29
GLenum GLenum dst
Definition: glext.h:6340
#define c
Definition: ke_i.h:80