Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Pointers and memory leaks in C.
char *name = (char *) malloc(11); // Assign some value to name memcpy ( p,name,11); // Problem begins here
I'm sorry, but I see it as having malloc'd 11 bytes...
I'm sorry, but I see it as having malloc'd 11 bytes...