update for HEAD-2003021201
[reactos.git] / lib / msvcrt / wstring / wcsncpy.c
1 #include <msvcrt/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    return(dest);
16 }
17
18
19
20