MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / strtod_buffer_size

Function strtod_buffer_size

deps/lua/src/fpconv.c:94–102  ·  view source on GitHub ↗

Calculate the size of the buffer required for a strtod locale * conversion. */

Source from the content-addressed store, hash-verified

92/* Calculate the size of the buffer required for a strtod locale
93 * conversion. */
94static int strtod_buffer_size(const char *s)
95{
96 const char *p = s;
97
98 while (valid_number_character(*p))
99 p++;
100
101 return p - s;
102}
103
104/* Similar to strtod(), but must be passed the current locale's decimal point
105 * character. Guaranteed to be called at the start of any valid number in a string */

Callers 1

fpconv_strtodFunction · 0.85

Calls 1

valid_number_characterFunction · 0.85

Tested by

no test coverage detected