Deleted Added
full compact
util.h (207842) util.h (213700)
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file util.h
4/// \brief Miscellaneous utility functions
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.

--- 82 unchanged lines hidden (view full) ---

91/// \note This uses double_to_str() internally so the static buffer
92/// in double_to_str() will be overwritten.
93///
94extern const char *uint64_to_nicestr(uint64_t value,
95 enum nicestr_unit unit_min, enum nicestr_unit unit_max,
96 bool always_also_bytes, uint32_t slot);
97
98
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file util.h
4/// \brief Miscellaneous utility functions
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.

--- 82 unchanged lines hidden (view full) ---

91/// \note This uses double_to_str() internally so the static buffer
92/// in double_to_str() will be overwritten.
93///
94extern const char *uint64_to_nicestr(uint64_t value,
95 enum nicestr_unit unit_min, enum nicestr_unit unit_max,
96 bool always_also_bytes, uint32_t slot);
97
98
99/// \brief Convert double to a string with one decimal place
100///
101/// This is like uint64_to_str() except that this converts a double and
102/// uses exactly one decimal place.
103extern const char *double_to_str(double value);
104
105
106/// \brief Wrapper for snprintf() to help constructing a string in pieces
107///
108/// A maximum of *left bytes is written starting from *pos. *pos and *left
109/// are updated accordingly.
110extern void my_snprintf(char **pos, size_t *left, const char *fmt, ...)
111 lzma_attribute((format(printf, 3, 4)));
112
113

--- 16 unchanged lines hidden ---
99/// \brief Wrapper for snprintf() to help constructing a string in pieces
100///
101/// A maximum of *left bytes is written starting from *pos. *pos and *left
102/// are updated accordingly.
103extern void my_snprintf(char **pos, size_t *left, const char *fmt, ...)
104 lzma_attribute((format(printf, 3, 4)));
105
106

--- 16 unchanged lines hidden ---