[RFC weston v2] Add safe_strtoint() helper

Thiago Macieira thiago at kde.org
Fri Jul 15 19:54:07 UTC 2016


On sexta-feira, 15 de julho de 2016 12:39:42 PDT Bryce Harrington wrote:
> Adds a safe strtol helper function, modeled loosely after Wayland
> scanner's strtouint.  This encapsulates the various quirks of strtol
> behavior, and streamlines the interface to just handling base-10 numbers
> with a simple true/false error indicator and a uint32_t return by
> reference.
> 
> Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>

Looks better.

Reviewed-by: Thiago Macieira <thiago.macieira at intel.com>

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



More information about the wayland-devel mailing list