I'm trying to write a method to set 2 variables to the numbers in a char string. The string would look something like:
[-][1][ ][ ][ ][ ][2][.][0][4]
Where the numbers -1 and 2.04 could be extracted. I know the method signature could look something like this:
sscanf(array[i],"%d%f",&someint,&somedouble)
But I'm honestly not sure how to go about writing it. Any help would be greatly appreciated