Module convert
Type conversions (C11/C17 string ↔ number) All parse functions set *ok = 1 on success, 0 on failure (NULL ok is safe).
Functions
| str_to_int | |
| str_to_uint | Parse an unsigned decimal integer. |
| str_to_hex | Parse a hex integer (with or without "0x" prefix). |
| str_to_float | Parse a floating-point number. |
| int_to_str | |
| uint_to_str | |
| float_to_str | |
| ll_to_int | Safe narrowing: return 1 and set *out if v fits in an int, else 0. |
| float_clamp_to_ll | Clamp a double to [min, max], then round to nearest long long. |
| str_is_int | Return 1 if the string is a valid decimal integer representation. |
| str_is_float | Return 1 if the string is a valid floating-point representation. |