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

2015-07-29 Thread Eric Blake
On 07/19/2015 05:02 PM, Carlos L. Torres wrote: From: Carlos L. Torres carlos.tor...@rackspace.com 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

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

2015-07-19 Thread Carlos L. Torres
From: Carlos L. Torres carlos.tor...@rackspace.com 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