Messages in this thread | | | Date | Wed, 7 Jul 2004 19:47:37 +0100 | From | Christoph Hellwig <> | Subject | Re: 0xdeadbeef vs 0xdeadbeefL |
| |
On Wed, Jul 07, 2004 at 11:41:50AM -0700, tom st denis wrote: > Um, actually "char" like "int" and "long" in C99 is signed. So while > you can write > > signed int x = -3; > > You don't have to. in fact if you "have" to then your compiler is > broken. Now I know that GCC offers "unsigned chars" but that's an > EXTENSION not part of the actual standard.
------------------------------ snip ----------------------------- [#15] The three types char, signed char, and unsigned char are collectively called the character types. The implementation shall define char to have the same range, representation, and behavior as either signed char or unsigned char.35) ------------------------------ snip ----------------------------- > As for writing portable code, um, jacka#!, BitKeeper, you know, that > thingy that hosts the Linux kernel? Yeah it uses LibTomCrypt. Why not > goto http://libtomcrypt.org and find out who the author is. Oh yeah, > that would be me. Why not email Wayne Scott [who has code in > LibTomCrypt btw...] and ask him about it? > > Who elses uses LibTomCrypt? Oh yeah, Sony, Gracenote, IBM [um Joy > Latten can chip in about that], Intel, various schools including > Harvard, Stanford, MIT, BYU, ...
Tons of people use windows aswell. You just showed that you don't know C well enough, so maybe someone should better do an audit for your code ;-) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |