| 305 | |
| 306 | #define DOUBLE2STR_MAX_LEN INT2STR_MAX_LEN |
| 307 | static inline char* double2str(double d, int* len) |
| 308 | { |
| 309 | unsigned int buf; |
| 310 | |
| 311 | buf = getstrbufindex(); |
| 312 | *len = snprintf(int2str_buf[buf], INT2STR_MAX_LEN - 1, "%0.*lf", |
| 313 | FLOATING_POINT_PRECISION, d); |
| 314 | int2str_buf[buf][*len] = '\0'; |
| 315 | |
| 316 | return int2str_buf[buf]; |
| 317 | } |
| 318 | |
| 319 | #define BIGINT2STR_MAX_LEN INT2STR_MAX_LEN |
| 320 | static inline char* bigint2str(long long l, int* len) |
no test coverage detected