Hi,
I am newer of learning c programing, I want to know when should I use memcpy() in my program?
Which one is better between red code and blue code?Code:int main() { char *a = NULL; char *b = NULL; b = malloc (sizeof(char) * 5); a = b; /*red code */ memcpy (a, b, sizeof(char)*5); /* blue code */ return (0); }
thx



3Likes
LinkBack URL
About LinkBacks



