27.09.2015, 19:57
This is the line I'm trying to do:
Trying to basically get this to get the day, month and year in that order (DD/MM/YYYY) but at the same time check that the "/" symbols are in place.
Any ideas?
Код:
if(!(sscanf(dateofbirth, "d/d/d", given_day, given_month, given_year))) ToggleFlagOnMask(errorMask, MA_CHRCREATION_ERR_DOB_WRONG_FORMAT, true); printf("Format 1: %d || Format: %d/%d/%d", errorMask, given_day, given_month, given_year);
Any ideas?