From 3904e6bf042391abc749d717465022e96e276fc7 Mon Sep 17 00:00:00 2001 From: "Carlos L. Torres" Date: Sun, 19 Jul 2015 18:02:20 -0500 Subject: cutils: Add qemu_strtoull() wrapper Add wrapper for strtoull() function. Include unit tests. Signed-off-by: Carlos L. Torres Message-Id: [Use uint64_t in prototype. - Paolo] Signed-off-by: Paolo Bonzini --- include/qemu-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/qemu-common.h b/include/qemu-common.h index 29cf0a0..2e684fe 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -209,6 +209,8 @@ int qemu_strtoul(const char *nptr, const char **endptr, int base, unsigned long *result); int qemu_strtoll(const char *nptr, const char **endptr, int base, int64_t *result); +int qemu_strtoull(const char *nptr, const char **endptr, int base, + uint64_t *result); int parse_uint(const char *s, unsigned long long *value, char **endptr, int base); -- cgit v1.1