MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / get_decimal_point

Function get_decimal_point

cJSON.c:279–287  ·  view source on GitHub ↗

get the decimal point character of the current locale */

Source from the content-addressed store, hash-verified

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

Callers 2

parse_numberFunction · 0.85
print_numberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…