Re: [Qemu-devel] [PATCH 1/8 v5] cutils: unsigned int parsing functions

2013-01-18 Thread Eric Blake
On 01/18/2013 10:57 AM, Eduardo Habkost wrote: > There are lots of duplicate parsing code using strto*() in QEMU, and > most of that code is broken in one way or another. Even the visitors > code have duplicate integer parsing code[1]. This introduces functions > to help parsing unsigned int values

[Qemu-devel] [PATCH 1/8 v5] cutils: unsigned int parsing functions

2013-01-18 Thread Eduardo Habkost
There are lots of duplicate parsing code using strto*() in QEMU, and most of that code is broken in one way or another. Even the visitors code have duplicate integer parsing code[1]. This introduces functions to help parsing unsigned int values: parse_uint() and parse_uint_full(). Parsing function