summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCarlos L. Torres2015-07-20 01:02:18 +0200
committerPaolo Bonzini2015-09-09 15:34:54 +0200
commitc817c01548b1500753d0bea3852938d919161778 (patch)
tree9291ce2e432f637a628f0ba747cbc67ecf8d77a6 /include
parentcutils: Add qemu_strtol() wrapper (diff)
downloadqemu-c817c01548b1500753d0bea3852938d919161778.tar.gz
qemu-c817c01548b1500753d0bea3852938d919161778.tar.xz
qemu-c817c01548b1500753d0bea3852938d919161778.zip
cutils: Add qemu_strtoul() wrapper
Add wrapper for strtoul() function. Include unit tests. Signed-off-by: Carlos L. Torres <carlos.torres@rackspace.com> Message-Id: <9621b4ae8e35fded31c715c2ae2a98f904f07ad0.1437346779.git.carlos.torres@rackspace.com> [Fix tests for 32-bit build. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-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 1c1169f68a..558a14fa5f 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -205,6 +205,8 @@ int fcntl_setfl(int fd, int flag);
int qemu_parse_fd(const char *param);
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 parse_uint(const char *s, unsigned long long *value, char **endptr,
int base);