Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Is this ok?? Message-ID: <1991Mar7.173712.18201@zoo.toronto.edu> Date: Thu, 7 Mar 1991 17:37:12 GMT References: Organization: U of Toronto Zoology In article davis@pacific.mps.ohio-state.edu (John E. Davis) writes: > The following code works on sun4 and ultrix but crashes on VMS. Just when >I thought I understood pointers..... > ... >int main() > { > ... > return(0); > } My tentative diagnosis is that you understand pointers but don't understand VMS exit status! 0 is *not* "success" in VMS. They're going to have to do something about this to conform to ANSI C, but they may not have figured that out yet. The pointer part of your program looks fine. -- "But this *is* the simplified version | Henry Spencer @ U of Toronto Zoology for the general public." -S. Harris | henry@zoo.toronto.edu utzoo!henry