How would I read variable number of integers from a string? i.e. if the command line was:
3 4 5 2 33 423
how could i make them all individual integers? I've tried using sscanf, but I can't figure out how to get a variable number of variables if there were 3 numbers vs. perhaps 40.
3 4 5 2 33 423
how could i make them all individual integers? I've tried using sscanf, but I can't figure out how to get a variable number of variables if there were 3 numbers vs. perhaps 40.