summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-08-13 14:24:36 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-08-21 07:54:07 +1000
commit7f8c39c8b5ef89153ecd84d16331e96d8feb18ef (patch)
tree9be2f3af42f5d7dc074c10e4978ee34af358cf9f /include
parent36c1d92ec0ef0f3927034a12d4cb79dcc22bd185 (diff)
Add FormatInt64 to convert signed integers in signal-safe manner
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include')
-rw-r--r--include/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/misc.h b/include/misc.h
index 7f7f221a8..348717676 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -247,6 +247,7 @@ padding_for_int32(const int bytes)
extern char **xstrtokenize(const char *str, const char *separators);
+extern void FormatInt64(int64_t num, char *string);
extern void FormatUInt64(uint64_t num, char *string);
extern void FormatUInt64Hex(uint64_t num, char *string);