From ef384ad9a7f81c1b5dac1bb9a80f9faf3e8023df Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 1 Feb 2024 15:53:11 -0500 Subject: display mem formatted --- include/lib.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/lib.h b/include/lib.h index 3be1f8b..d808833 100644 --- a/include/lib.h +++ b/include/lib.h @@ -156,6 +156,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. -- cgit v1.2.3-freya