[PATCH v2] wayland-util: added wl_strtol/wl_strtoul utility functions

Bill Spitzak spitzak at gmail.com
Wed Oct 22 12:43:01 PDT 2014

On 10/22/2014 02:13 AM, Marek Chalupa wrote:

> What I'm wondering is what should be the behavior of wl_strtoul for
> negative numbers?
> strtoul silently converts them, but I don't think this is what we always
> want... or is it?

-1 is a handy shortcut for strtoul to get all the bits turned on and get 
the maximum possible value.

Not sure if other negative numbers are much use though.

More information about the wayland-devel mailing list