I have a homework about coding a car saler program. User gives us the datas about cars as a string so I should use strtok and atoi.

Code:
struct ilanBilgi {    char sehir[15];
    int fiyat;
    struct ilanTarih;
    char marka[15];
    char model[15];
    int modelYil;
};
These are the datas about cars and I should locate memory for 5 cars for the beginning if user keeps entrying data I should locate memory for another 5 so it goes like 5 cars,10 cars,15,20...

What should I do with the malloc functions?