Referencing NULL pointers

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jul 12 15:35:10 AEST 1989


In article <32UP02Eg3d=801 at amdahl.uts.amdahl.com> vohra at amdahl.uts.amdahl.com (KC) writes:
>Try a rewrite: "x= ((struct somestruct *)0)->somefield".

That's not valid C either.

>Anyway, it is the operating system that makes the action that the
>process takes valid or invalid.

No, there IS a C language definition or two.



More information about the Comp.unix.wizards mailing list