Path: utzoo!attcan!uunet!charyb!will From: will@kfw.COM (Will Crowder) Newsgroups: comp.lang.c Subject: Re: IsUnsigned() function? Message-ID: <1990Jul27.161339.14712@kfw.COM> Date: 27 Jul 90 16:13:39 GMT References: <1990Jul16.214155.5087@Neon.Stanford.EDU> <3539@sactoh0.UUCP> <104086@convex.convex.com> Reply-To: will@kfw.com (Will Crowder) Organization: KFW Corporation, Newbury Park, CA Lines: 14 I promised myself I wouldn't get into this.... It sounds like the question has to do with whether or not a given *type* is signed or unsigned for a given implementation. That could be a useful thing to know, and ideally, the result would be a compile-time constant. The specific case I'm thinking of char, which, according to ANSI, can be signed or unsigned as the implementation desires. What's wrong with: #define IsUnsigned(type) ((type)0 - 1 > 0) Will