Posts

Showing posts from November, 2022

Key Points

strcpy vs. memcpy strcpy (strbuff,s); memcpy (membuff,s, 5 ); The main difference is that  memcpy()  always copies the exact number of bytes you specify;  strcpy() , on the other hand, will copy until it reads a NUL (aka 0) byte, and then stop after that.