Hi i want to read multiple data from stdin like this:
Comand name:number name:number ...
I want to do something like this, but the problem is how can i get the name and the number separately and them verify it to.
Comand name:number name:number ...
Code:
void app() {
char line[INBUFF];
if (fgets(line, sizeof(line), stdin) != NULL) {
sscanf(line, "%s", comand);
verify(comand);
...
}
I want to do something like this, but the problem is how can i get the name and the number separately and them verify it to.