C - Malloc or calloc...and how?
- by Pedro
Hi...i have a txt file where the first number define the size of the array's, i know that calloc or malloc can reserve memory, but how?
this code:
typedef struct alpha{
int *size;
char name;
int tot;
char line[60];
}ALPHA;
fgets(line,60,fp);…