Hi i am having problems copying this data structure (memory leaks), so I was wondering if anyone could help me with it.
The problem is allocating memory for void *ptr.Code:typedef struct List { int x; void *ptr; struct List *next; } List;
thnx
baxy