Re: code cracking or how do you know you've got the correct key?

From: Phil Carmody (thefatphil_demunged_at_yahoo.co.uk)
Date: 12/29/04


Date: 29 Dec 2004 11:08:24 +0200


"John E. Hadstate" <jh113355@hotmail.com> writes:
> Unless the 0xF0 gets sign extended when promoted to an int.

0xF0 is already an int.

> I have used a C compiler that sees 0xF0 as a char.

When? By whose definition of "C compiler". Doug's the man, standards-wise,
but the various draft versions I have access to all indicate that 0xF0
has always been an int since at least C hit ISO.

If you're talking about '\xF0', then surprisingly the issue is
unchanged. However, I do know of several C/C++ compilers who
have "helpfully" treated that as if it were of char type, even
when being told to compile as C rather than C++. i.e. they were
broken.

Phil

-- 
The gun is good. The penis is evil... Go forth and kill.


Relevant Pages

  • Re: It Pays to Enrich Your C Skills
    ... Check if you can score a perfect 10 (without using a compiler). ... int main{ ... struct bitfield { ... out if it is a negative integer constant or a constant expression ...
    (comp.lang.c.moderated)
  • Re: cpu type idea
    ... compiler related recently. ... int main ... float a; ... just to parallelize the vectror and tensor operations. ...
    (alt.lang.asm)
  • Re: extended operators
    ... uint32_t u32rotl{ ... my compiler currently doesn't handle constants this large... ... together a "cleaner" way of dealing with temporary text buffers, ... different sets of tokens. ...
    (comp.std.c)
  • Re: problem with output of the program on different OS
    ... for those few remaining millions that don't have a C99 compiler. ... assert that it's not -1... ... int index, i; ... for N, you want *numpoints, right? ...
    (comp.lang.c)
  • Re: Integer types in embedded systems
    ... Notice the integer type I've used, ... compilers for 8-bit micros have an option for telling the compiler not ... Most C programmers these days are woefully ignorant, ... At least as important as portability, ...
    (comp.lang.c)