I'm currently learning strings in C, and a question arose: why doesn't the C developers make strncpy null terminated automatically?
For example in the implementation of strncpy, why didn't people who make C language add this line:
// dest denotes the destination string
dest[n - 1] = '\0';
in order to make strncpy safer?