Hi,
first of all: the answer to my question is NOT atof()!
I have a char-array that may contain something like "1.2345". I want to convert the contained values to float/doubles but unfortunately atof() depends on the current locale. So whenever a user executes the application on a system where "," is the decimal separator my result is 1.0, only on systems where "." is the decimal separator I get the correct result 1.2345.
Replacing all "," by a "." is not a solution since comma may be a separator within the char array.
So how else can I parse and convert such a float value? Is there a function that can be forced to use "."?