Re: [Qemu-devel] [PATCH 2/4] cutils: Add qemu_strtoul() wrapper

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 03:09, Carlos L. Torres wrote: > + > +/** > + * Converts ASCII string to an unsigned long integer. > + * > + * If string contains a negative number, value will be converted to > + * the unsigned representation of the signed value. Please document overflow here, as it is slightly di

[Qemu-devel] [PATCH 2/4] cutils: Add qemu_strtoul() wrapper

2015-07-08 Thread Carlos L. Torres
From: "Carlos L. Torres" Add wrapper for strtoul() function. Include unit tests. Signed-off-by: Carlos L. Torres --- include/qemu-common.h | 2 + tests/test-cutils.c | 291 ++ util/cutils.c | 27 + 3 files changed, 320 insertions