strtod-- usage problem???

Hello Guys.. i need to parse a string which contains floating point numbers.

The function strtod sounds great to me...but the problem is that this function returns a 0.0 when it doesnt find a valid floating pt number.
And the string(which is to be parsed) can contain floating pt numbers with value 0.0...

What should I do???
I was thinking of using strtok and then doing a atof!!

Any better suggestions?
Topic archived. No new replies allowed.