MCPcopy Index your code
hub / github.com/antirez/botlib / get_decimal_point

Function get_decimal_point

cJSON.c:277–285  ·  view source on GitHub ↗

get the decimal point character of the current locale */

Source from the content-addressed store, hash-verified

275
276/* get the decimal point character of the current locale */
277static unsigned char get_decimal_point(void)
278{
279#ifdef ENABLE_LOCALES
280 struct lconv *lconv = localeconv();
281 return (unsigned char) lconv->decimal_point[0];
282#else
283 return '.';
284#endif
285}
286
287typedef struct
288{

Callers 2

parse_numberFunction · 0.85
print_numberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected