This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / lib / crtdll / wchar / wcsncpy.c
1 #include <crtdll/wchar.h>
2
3 wchar_t * wcsncpy(wchar_t * dest,const wchar_t *src,size_t count)
4 {
5    int i;
6    
7    for (i=0;i<count;i++)
8      {
9         dest[i] = src[i];
10         if (src[i] == 0)
11           {
12              return(dest);
13           }
14      }
15    dest[i]=0;
16    return(dest);
17 }
18
19
20
21