I currently have a function named readLine(char* buffer, char* pointValue, int point) with buffer being the entire line value of a file, pointValue being the substring I need to return and point being the value to read. Now I just wanted to know what would be the best way of finding that substring in the buffer ? scanf inside a switch?
buffer= -204.88 -648.67 -560.46
pointValue= should be -648.67 without spaces
Thanks for your help,