[Gllug] C function strcasecmp
Mark Hemment
markhe at veritas.com
Mon Jul 30 14:27:42 UTC 2001
On Sun, 29 Jul 2001 home at alexhudson.com wrote:
> On Sun, Jul 29, 2001 at 08:48:30PM +0100, Mark Hemment wrote:
> > There is a difference between illegal constructs and undefined behaviour
> > within the C language. With undefined behaviour the compiler still has
> > rules to follow. But under some conditions, one/some of those rules are
> > "open", and can change from compiler-to-compiler (and even from
> > optimization level to optimization level).
>
> .. which was exactly what I was saying.
No it isn't.
> The point is, in this case, although there is still ambiguity, it makes
> no difference how the compiler interprets it - it will always get it
> right.
It cannot always get it right - as there is no right way (it is
undefined).
Mark
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list