Date *date_create(char *datestr);
struct datestr {
int date;
int month;
int year;
}
char *datestr = (char*)malloc(sizeof(char)*size);
date_create
creates a data structure fromdatestr
datestr
is expected to be of the form "dd/mm/yyyy"
Basically I'm having some problems with the create portion i need some help in creating let's say an input 02/11/2013 and then this data will be added into the pointer and then i have to display them in terms of blocks such as 02 for date, 11 for month and 2013 for year... any ideas how to continue from here? i will have to use a malloc function?