On 19.10.2011 01:00, Michael Sweet wrote:
> The usage of strtol in this case always wanted a base-10 number,

Right, I missed the "10" argument somehow.

> so to "fix" this particular case we want:
>
>      while (isspace(*str&  255))
>        str ++;
>      if (*str == '+' || *str == '-')
>        str ++;
>      while (isdigit(*str&  255))
>        str ++;
>
> However, this has always been documented as "Cnnn" - decimal number, no sign, 
> whitespace, etc. allowed - and the original "fix" should be sufficient...

Okay, then, if this is what is documented, then it should be okay.
Thanks, it's too late here now... taking another look at it tomorrow.

> (The inline function solution, while effective, is a bit too "hacky" for my 
> taste...)

Agreed. I also didn't like it very much, but it does the job...

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to