procps/lib
Craig Small 03437d7dd3 A locale-independent strtod
There is a need in some utilities to have a way of accepting both
types of decimal points "." and ",". The only way seems to be to
rebuild strtod().

This new function will accept "123.456" and "123,456" as 123.456
and considers them the same number. It means we lose thousands
separator, but this is rarely used.

test scripts are added to check the function returns the proper
values. There was simpler predecessor that got stuck on negative
0 or -0.123 which these tests flushed out.

References:
2016-03-10 22:27:09 +11:00
..
.gitignore A locale-independent strtod 2016-03-10 22:27:09 +11:00
fileutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00
signals.c kill: split out from skill/snice 2015-09-26 09:13:13 +10:00
strutils.c A locale-independent strtod 2016-03-10 22:27:09 +11:00
test_fileutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00
test_process.c Create test process 2015-06-13 15:04:31 +10:00
test_strtod_nol.c A locale-independent strtod 2016-03-10 22:27:09 +11:00
test_strutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00