Hello I have a suggestion for strncpy. C23 draft states this caveat for strncpy. "373) Thus, if there is no null character in the first n characters of the array pointed to by s2, the result will not be null- terminated." https://man7.org/linux/man-pages/man3/strncpy.3.html "If the destination buffer, limited by its size, isn't large enough to hold the copy, the resulting character sequence is truncated. " How about clarifying this as: "If the destination buffer, limited by its size, isn't large enough to hold the copy, the resulting character sequence is truncated; where there is no null terminating byte in the first n characters the result will not be null terminated. " Kind regards, Jonny