strcpy vs memcpy

strcpy() and memcpy() lives in same header file (string.h in C and cstring in C++) and has similar purpose in their lives – “to create copies”. But they are different in the way they work. strcpy(): copies the string at src, including its terminating ‘\0’, to the memory at dest will only work […]