Re: [Qemu-devel] [PATCH 0/4] cutils: Add qemu_strto*l() wrappers

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 03:09, Carlos L. Torres wrote: > From: "Carlos L. Torres" > > Introduce qemu_ wrappers for strtol/strtoul/strtoll/strtoull > C functions, ensure that errno is checked, and if NULL is > passed as the endptr argument, then whole string has to be > a valid number on the given base, o

[Qemu-devel] [PATCH 0/4] cutils: Add qemu_strto*l() wrappers

2015-07-08 Thread Carlos L. Torres
From: "Carlos L. Torres" Introduce qemu_ wrappers for strtol/strtoul/strtoll/strtoull C functions, ensure that errno is checked, and if NULL is passed as the endptr argument, then whole string has to be a valid number on the given base, otherwise return appropriate error. Different from the C st