The C strcpy function is a common sight in typical C programs. It’s also a source of buffer overflow defects, so linters and code reviewers commonly recommend alternatives such as strncpy (difficult to use correctly; mismatched semantics), strlcpy (non-standard, flawed), or C11’s optional strcpy_s (no correct or practical implementations). Besides their individual shortcomings, these answers are i