File tree Expand file tree Collapse file tree
bench/xjb/float_to_string Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 * Convert a float to string
1010 * @param v The float value to convert
1111 * @param buf The buffer to write the result to (must be at least 21 bytes)
12+ * Maximum effective written length for float is 15 bytes.
1213 * @return A pointer to the end of the written string (including the null terminator)
1314 */
1415char * xjb_ftoa (float v , char * buf );
@@ -17,6 +18,7 @@ char* xjb_ftoa(float v, char *buf);
1718 * Convert a double to string
1819 * @param v The double value to convert
1920 * @param buf The buffer to write the result to (must be at least 33 bytes)
21+ * Maximum effective written length for double is 24 bytes.
2022 * @return A pointer to the end of the written string (including the null terminator)
2123 */
2224char * xjb_ftoa (double v , char * buf );
Original file line number Diff line number Diff line change 1919 * Convert a float to string
2020 * @param v The float value to convert
2121 * @param buf The buffer to write the result to (must be at least 21 bytes)
22+ * Maximum effective written length for float is 15 bytes.
2223 * @return A pointer to the end of the written string (including the null terminator)
2324 */
2425char * xjb_ftoa (float v , char * buf );
@@ -27,6 +28,7 @@ char* xjb_ftoa(float v, char* buf);
2728 * Convert a double to string
2829 * @param v The double value to convert
2930 * @param buf The buffer to write the result to (must be at least 33 bytes)
31+ * Maximum effective written length for double is 24 bytes.
3032 * @return A pointer to the end of the written string (including the null terminator)
3133 */
3234char * xjb_ftoa (double v , char * buf );
You can’t perform that action at this time.
0 commit comments