Locale-independent “atof”?

后端 未结 8 1847
余生分开走
余生分开走 2020-12-14 17:21

I\'m parsing GPS status entries in fixed NMEA sentences, where fraction part of geographical minutes comes always after period. However, on systems where locale defines comm

8条回答
  •  情深已故
    2020-12-14 17:53

    Any reason why you can't do a setlocale "C" before the atof and restore the locale afterwards? Maybe I misunderstood the question...

提交回复
热议问题