Re: Handling maximum values in C (was: MAX_UID)

2000-03-23 Thread Garance A Drosihn
At 3:04 AM -0500 3/23/00, I (Garance A Drosihn) wrote: >Once I found the messages, >it took me another 30 seconds to realize the above is only for >UNSIGNED types. For signed types, all of the above just result in a >"max value" of -1... (so imagine the fun if some arbitrary type is >changed fro

Re: Handling maximum values in C (was: MAX_UID)

2000-03-23 Thread Garance A Drosihn
Recently on the freebsd-current mailing list, the topic came up of setting the maximum value of a given type (uid_t, as the specific example, but the conversation turned to having a generic way to find the maximum value of any given type). Some excerpts from that thread: > > > To get the all-1`s