At 01:11 PM 11/29/2002 -0500, Pierre A. Humblet wrote:
>But, now that I am staring at it, we will have problems with 32 bit
>uids > 0x8000000, except if they are entered as negative numbers.
>This is from the opengroup:
>If the correct value is outside the range of representable values, 
>LONG_MAX or LONG_MIN is returned (according to the sign of the value),
>and errno is set to [ERANGE]. 
>
One way out is to use strtoll and return the 32 low bits. That will
work with uid values entered as positive or negative numbers.

Pierre


Reply via email to