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 strcpy
@section @code{strcpy}
@findex strcpy
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strcpy.html}
Gnulib module: string
Portability problems fixed by Gnulib:
@itemize
@item
This function cannot be called from plain inline or extern inline functions
on some platforms:
OS X 10.8.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize
Note: @code{strcpy (dst, src)} is only safe to use when you can guarantee that
there are at least @code{strlen (src) + 1} bytes allocated at @code{dst}.