On 08/11/2023 23:06, Paul Eggert wrote: > On 11/8/23 14:17, Alejandro Colomar wrote: >> These copy*from* a string > > Not necessarily. For example, in strncpy (DST, SRC, N), SRC need not be a string. > > By the way, have you looked at the recent (i.e., this-year) changes to the glibc manual's string section? They're relevant. That's a great reference page Paul, lots of useful information in the manual. https://www.gnu.org/software/libc/manual/html_node/String-and-Array-Utilities.html Re this man page: https://man7.org/linux/man-pages/man3/string.3.html Obsolete functions char *strncpy(char dest[restrict .n], const char src[restrict .n], size_t n); Copy at most n bytes from string src to dest, returning a pointer to the start of dest. It could clarify "Copy at most n bytes from string src to ARRAY dest, returning a pointer to the start of ARRAY dest." (caps for my emphasis in this email) Kind regards Jonny