I am trying to assign a block of memory to an address which already exists.
typedef struct _schedule{
char stop[MAX_LEN];
int time;
}schedule;
schedule *p_sch = calloc(2, sizeof(schedule));
after initialize 2 schedule blocks and then I want to create another 3 schedules
But when I do this.
p_sch+3 = (schedule*)calloc(two,sizeof(schedule));
it shows an error "expression is not assignable".
Can I use calloc to specific address in c?