MCPcopy Create free account
hub / github.com/RsyncProject/rsync / get_number_separator

Function get_number_separator

lib/compat.c:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static char number_separator;
26
27char get_number_separator(void)
28{
29 if (!number_separator) {
30 char buf[32];
31 snprintf(buf, sizeof buf, "%f", 3.14);
32 if (strchr(buf, '.') != NULL)
33 number_separator = ',';
34 else
35 number_separator = '.';
36 }
37
38 return number_separator;
39}
40
41char get_decimal_point(void)
42{

Callers 2

get_decimal_pointFunction · 0.85
do_big_numFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected