[PATCH wayland] wl_strtol and wl_strtoul utility functions are added
Thiago Macieira
thiago at kde.org
Wed Oct 15 13:21:18 PDT 2014
On Wednesday 15 October 2014 16:14:17 Imran Zaman wrote:
> Hi
>
> The patch is used to replace strtol and strtoul with wl_strtol and
> wl_strtoul with inputs and result checks.
>
> The utility functions are used extensively in wayland and weston so added
> appropriate
> input and output checks; test cases are also updated; will push the patch
> for weston as well.
You should use strtol_l and strtoul_l from <xlocale.h> and pass the C locale.
Otherwise, those functions are subject to the locale's definition of a space
character.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
More information about the wayland-devel
mailing list