Aspects


vs


Strcpy

A C standard library function: `strcpy` is used to copy non-overlapping, null-terminated strings

Strlen

A standard C function that returns the length of a string.

Others

Quality Example
More

"If strcpy is anything like strcpy it will write one byte more than strlen returns to zero terminate the string"

from question "Heap corruption while freeing memory"

Shorter

"Strcpy incoming connected will overwrite dataa and maybe datab if your first token pointed to by header is shorter than strlen connected"

from question "The strcpy function causing unwanted vars being modified"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0