Difference between memcpy and strncpy
pls tell the difference between memcpy and strncpy.
Note that strncpy behaves almost like memcpy, but it also treats zero character (end of ASCII-Z string) specially, padding destination with zeroes after that point.
I.e. strncpy works like memcpy for data not containing zero byte.
Topic archived. No new replies allowed.