Allow input ',' as float separator

pull/51/head
DiSlord Live 3 years ago committed by erikkaashoek
parent 563c63b630
commit 406650fdf9

@ -529,7 +529,7 @@ my_atof(const char *p)
p++; p++;
if (*p == 'k' || *p == 'M' || *p == 'G') if (*p == 'k' || *p == 'M' || *p == 'G')
p++; p++;
if (*p == '.') { if (*p == '.' || *p == ',') {
float d = 1.0; float d = 1.0;
p++; p++;
while (_isdigit((int)*p)) { while (_isdigit((int)*p)) {

Loading…
Cancel
Save

Powered by TurnKey Linux.