Hash :
d93e96eb
Author :
Date :
2024-12-27T23:37:59
Rename module string to string-h. * modules/string-h: Renamed from modules/string. * modules/string-h-tests: Renamed from modules/string-tests. * modules/string-h-c++-tests: Renamed from modules/string-c++-tests. * tests/test-string-h.c: Renamed from tests/test-string.c. * tests/test-string-h-c++.cc: Renamed from tests/test-string-c++.cc. * tests/test-string-h-c++2.cc: Renamed from tests/test-string-c++2.cc. * doc/posix-headers/string.texi: Update. * doc/posix-functions/strcat.texi: Update. * doc/posix-functions/strcpy.texi: Update. * doc/posix-functions/strncpy.texi: Update. * modules/* (Depends-on): Update. * modules/string: New file.
@node strcpy
@subsection @code{strcpy}
@findex strcpy
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcpy.html}
Gnulib module: string-h
@mindex string-h
Portability problems fixed by Gnulib:
@itemize
@item
This function cannot be called from plain inline or extern inline functions
on some platforms:
macOS 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}.