Evil that strncpy does

Which Evil that men do one is more evil? strcpy or strncpy?

Google suggests ‘strcpy is evil’ when looking for ‘strncpy is evil’. Or as the author of this page says:

The usage of char * and strcpy causes horrible memory problems due to “overflow”, “fence past errors”, “step-on-others-toe” (hurting other variable’s memory locations) or “memory leaks”.

Horrors.

This entry was posted in Truro NS. Bookmark the permalink.