aboutsummaryrefslogtreecommitdiff
path: root/include/qemu-common.h
diff options
context:
space:
mode:
authorCarlos L. Torres <carlos.torres@rackspace.com>2015-07-19 18:02:19 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-09 15:34:54 +0200
commit8ac4df40cc5de606a8ac9174e2340c21093b4e3b (patch)
treedbc6bf4eb2de63a72b86be0872a5d3194734d7c5 /include/qemu-common.h
parentc817c01548b1500753d0bea3852938d919161778 (diff)
downloadqemu-arm-8ac4df40cc5de606a8ac9174e2340c21093b4e3b.tar.gz
cutils: Add qemu_strtoll() wrapper
Add wrapper for strtoll() function. Include unit tests. Signed-off-by: Carlos L. Torres <carlos.torres@rackspace.com> Message-Id: <7454a6bb9ec03b629e8beb4f109dd30dc2c9804c.1437346779.git.carlos.torres@rackspace.com> [Use int64_t in prototype, since that's what QEMU uses. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu-common.h')
-rw-r--r--include/qemu-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h
index 558a14fa5f..29cf0a0765 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -207,6 +207,8 @@ int qemu_strtol(const char *nptr, const char **endptr, int base,
long *result);
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 parse_uint(const char *s, unsigned long long *value, char **endptr,
int base);