by oddity · 8y ago · 0 comments
Most "nice" C functions are also not used as teaching examples. There's a difference in how one writes C code for production use and instructive use.
void strcpy(char *s, char *t) {
while ((*s++ = *t++) != '\0') ;
} _String == 0 ? 0 : strnlen(_String, _MaxCount) nullCharPtr - str
? Is there something unsafe with that?