]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - utility.h
Imported Upstream version 5.41+svn3365
[mirror_smartmontools-debian.git] / utility.h
index f2d081ffc022751ca6a69fbd10b9c8c8ec6b267c..e9dfb352cc879ac912bdd3ed8d765b35432355de 100644 (file)
--- a/utility.h
+++ b/utility.h
@@ -26,7 +26,7 @@
 #ifndef UTILITY_H_
 #define UTILITY_H_
 
-#define UTILITY_H_CVSID "$Id: utility.h 3285 2011-03-04 22:08:49Z chrfranke $"
+#define UTILITY_H_CVSID "$Id: utility.h 3305 2011-03-30 21:32:05Z chrfranke $"
 
 #include <time.h>
 #include <sys/types.h> // for regex.h (according to POSIX)
@@ -173,6 +173,14 @@ void FixGlibcTimeZoneBug();
 // convert time in msec to a text string
 void MsecToText(unsigned int msec, char *txt);
 
+// Format integer with thousands separator
+const char * format_with_thousands_sep(char * str, int strsize, uint64_t val,
+                                       const char * thousands_sep = 0);
+
+// Format capacity with SI prefixes
+const char * format_capacity(char * str, int strsize, uint64_t val,
+                             const char * decimal_point = 0);
+
 // Wrapper class for a raw data buffer
 class raw_buffer
 {