Ok, I have today's date in a character array.
How do I parse it so that I can store the year, month, and day into variables "year", "month", and "day".
My code is attached. Yes, I am learning. Yes, I am only on Chapter 4 in my teach-yourself, self-help book. And yes, I am not a computer programmer. Thank you in advance for your help!
// Get TODAY's date in string form
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
strftime(str, sizeof(str) , "%d%b%Y", timeinfo);
// printf(str); //lets me see if date is right
// Get YESTERDAY's date
unsigned short year;
unsigned short month;
unsigned short day;
year = 2010;
month = 3;
day = 31;
one_Day_Earlier(year, month, day);