I have a string range
that represents a range, for example:
"7-35"
I am looking for a simple way to split it into two integers int begin
and int end
.
I already saw this and this, but I am actually searching for some kind of a "one line" command if there exist any.
It is actually the opposite of doing:
sprintf(range,%d-%d,start,end);