wcsncpy.c

The libc implementation

Author

Marcel Sondaar

License

Public Domain

Summary
wcsncpy.cThe libc implementation
Functions
wcsncpyCopies the null terminated wide string s2 to s1.

Functions

wcsncpy

wchar_t * wcsncpy(wchar_t * _PDCLIB_restrict s1,
const wchar_t * _PDCLIB_restrict s2,
size_t n)

Copies the null terminated wide string s2 to s1.  Copies at most n characters, if there are less, it will write zeroes.

Returns the value of s1

wchar_t * wcsncpy(wchar_t * _PDCLIB_restrict s1,
const wchar_t * _PDCLIB_restrict s2,
size_t n)
Copies the null terminated wide string s2 to s1.