View Single Post
Contributor
26Dec2006,08:47  
Aztec's Avatar
Quote:
Originally Posted by danielakkerman
Code:
char *x = "C-PROGRAMMING";
char *Prog = (char *)malloc(strlen(x));
You don't even need to cast return value of malloc in C.