[Gllug] C function strcasecmp
Tom Gilbert
tom at linuxbrit.co.uk
Sun Jul 29 20:01:49 UTC 2001
* home at alexhudson.com (home at alexhudson.com) wrote:
> On Sun, Jul 29, 2001 at 06:44:40PM +0100, Nix wrote:
> > >> > > *x+=~(*x)++;
> > >> >
> > >> > Foul and invokes undefined behaviour; multiple modifications with no
> > >> > intervening sequence points ;P
> > > Actually, thinking about it - who cares if it's out of sequence? Doesn't
> > > matter :) (I think - assuming it wasn't being calculated in parallel,
> > > anyway).
> >
> > You misunderstand the meaning of `undefined'. It doesn't mean
> > *anything*; it's not in C. The compiler is quite within its rights to
> > generate code that reformats the disk, or that runs nethack; it doesn't
> > just affect order-of-execution.
>
> I don't think it is within it's rights to do that. The only issue here is
Undefined is undefined, an earlier version of gcc kicked off a game of
nethack if it encountered a #pragma iirc :)p
Tom.
--
.^. .-------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | Open Source/UNIX consultant | tom at linuxbrit.co.uk |
^^-^^ `-------------------------------------------------------'
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list