What is the significant difference between memcpy() and strncpy()? I ask this because we can easily alter strncpy() to copy any type of da
memcpy()
strncpy()
When memory block requires to be copied memcpy is useful and data in the for of string strncpy is meaningful because of the natural advantage of '\0' terminated string. Otherwise both perform same pattern of copy after execution.