M
monkeys paw
Hello all, what is the easiest way to parse the following
string into components?
char state[3];
int number;
int calendar_year;
int main()
{
char *s = "CA200617456";
}
What would need to happen after the parse is this:
state= "CA"
number=17456
calendar_year=2006
Thanks for any help!
string into components?
char state[3];
int number;
int calendar_year;
int main()
{
char *s = "CA200617456";
}
What would need to happen after the parse is this:
state= "CA"
number=17456
calendar_year=2006
Thanks for any help!