diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/lib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/lib.h b/include/lib.h index 3be1f8b..d808833 100644 --- a/include/lib.h +++ b/include/lib.h @@ -157,6 +157,14 @@ char *ultoa(unsigned long int n, char *buffer, int radix); char *ulltoa(unsigned long long int n, char *buffer, int radix); /** + * Converts a byte count to a human readable file size + * @param bytes - the bytes to convert + * @param buf - the buffer to store it in + * @preturns - bus + */ +char *btoa(size_t bytes, char *buf); + +/** * Converts the string in str to an int value based on the given base. * The endptr is updated to where the string was no longer valid. * @param str - the string buffer |