Quote Originally Posted by Tommo View Post
>
> p = (some_typ *)malloc(sizeof(p));

Don't cast malloc.
...
why "don't cast malloc" ? because it is automatic or because it is wrong?