MCPcopy Create free account
hub / github.com/coreutils/coreutils / numcompare

Function numcompare

src/sort.c:2105–2115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2103 hideously fast. */
2104
2105ATTRIBUTE_PURE
2106static int
2107numcompare (char const *a, char const *b)
2108{
2109 while (blanks[to_uchar (*a)])
2110 a++;
2111 while (blanks[to_uchar (*b)])
2112 b++;
2113
2114 return strnumcmp (a, b, decimal_point, thousands_sep);
2115}
2116
2117static int
2118nan_compare (long double a, long double b)

Callers 3

strintcmpFunction · 0.85
strnumcmpFunction · 0.85
keycompareFunction · 0.85

Calls 2

to_ucharFunction · 0.85
strnumcmpFunction · 0.85

Tested by

no test coverage detected