Im new to C, and I would like to learn how can I Strack multiple words from a string just using strchr().. cant use strtok, scanf or similar functions..
I have string:
char myImput[51]="my flight to New Orleans, is at 12:30"
the string format is: "my flight cityname, is at hh:mm" i want to extract the cityname (it can have spaces) the hh and mm
is there a way to extra the cityname into a a new string called city, the hh to hour and mins to minutes?
I would like to:
printf("the flight to %s, is at %s hr and %s mins", cityname, hour, minutes);
I would really appreciate your help thank you in advance