I pretty much always go with integer rather than unsigned. I figure it's
more likely that a number could be negative than bigger than an signed

Obviously in this case, the offsets would never be negative, but it's *
conceivable* that the CCSID might hold -1 meaning *JOB or *SYSTEM (as it
does in calls to some other API's).

If in doubt, I try to find the C definition and see what that says, since it
tends to be more accurate (or at least more documented).


On Mon, Aug 18, 2008 at 1:11 PM, Charles Wilt <charles.wilt@xxxxxxxxx>wrote:


Just curious as to what guidelines you use when choosing between
signed or unsigned integer to replace the binary data type in API

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].