Hey all, for example let's say I have
Code:
sscanf(line, "%s" %d"", string, &date_id);
I am still learning, not that familiar with all the functions but I am coding more, what would be the best function to use (i am using the tutorialspoint web site for tutorials) to for example see if the first digits of an 11 digit int would be "01_", "02_", "03_", meaning 01 for January, 02 for February, 03 for March, and remaining 8 digits are MMDDYYYY. I have
this set too. I was wondering, would the modulus operator be a good choice to use in deciding what the first two digits are being inputted. I would like to use a loop that would just break out of the first digits 01_ => 12_ aren't entered. Thanks.