I have a string in form of a date eg . "10/23/2010"
i'd like to convert it to integer such that
int day = 23
int month = 10
year = 2010
I have a string in form of a date eg . "10/23/2010"
i'd like to convert it to integer such that
int day = 23
int month = 10
year = 2010
ssharishCode:char date[] = "10/5/2010"; sscanf( date, "%d/%d/%d", &d, &m, &y );
Life is like riding a bicycle. To keep your balance you must keep moving - Einstein
Note: strtok modifies the orginal string