Hash :
4f923aaf
Author :
Date :
2017-10-03T22:01:42
doc: warn about misuse of strncpy and wcsncpy. * doc/posix-functions/strcpy.texi: Describe requirements on prior memory allocation. * doc/posix-functions/wcscpy.texi: Likewise. * doc/posix-functions/strncpy.texi: Describe what this function is not useful for. * doc/posix-functions/wcsncpy.texi: Likewise.
@node wcscpy
@section @code{wcscpy}
@findex wcscpy
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/wcscpy.html}
Gnulib module: wcscpy
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
IRIX 5.3, Solaris 2.5.1.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot
accommodate all Unicode characters.
@end itemize
Note: @code{wcscpy (dst, src)} is only safe to use when you can guarantee that
there are at least @code{wcslen (src) + 1} wide characters allocated at
@code{dst}.