diff options
author | Chase Douglas <chase.douglas@canonical.com> | 2012-04-06 10:13:45 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-06-21 15:45:22 +1000 |
commit | 704b847abfd29e9adde27127a15a963414f8bcf4 (patch) | |
tree | 5e2b29d8d65f6aff9dfae92f30357b82e480edd3 /include | |
parent | bc85c81687a24aea738094ff11f4448fb3b3afbb (diff) |
Add FormatUInt64{,Hex}() for formatting numbers in a signal safe manner
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/misc.h b/include/misc.h index fea74b86c..6ae020a59 100644 --- a/include/misc.h +++ b/include/misc.h @@ -229,6 +229,8 @@ pad_to_int32(const int bytes) } extern char **xstrtokenize(const char *str, const char *separators); +extern void FormatUInt64(uint64_t num, char *string); +extern void FormatUInt64Hex(uint64_t num, char *string); /** * Compare the two version numbers comprising of major.minor. |