I was wondering if u could malloc in a structure parts at a t time.
Is there a way to malloc space for the part and part2 without touching the pointer for randomstuctCode:typedef struct { char part[10]; char part2[20]; randomstruct * ptr; } struct1;
like
struct1 test;
test->part = malloc(sizeof(part));
???????