The wcsncpy function copies no more than maxchar characters from source to dest. If source contains less than maxchar characters, null characters are added to dest until maxchar characters have been written to dest. If source contains maxchar or more characters, as many characters as possible are copied to dest. The null terminator of source is not copied to dest. See also wcscpy.