Path: utzoo!mnetor!uunet!mcvax!botter!ark!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re: VMS pointer problems continue. Message-ID: <1218@ark.cs.vu.nl> Date: 24 Mar 88 17:54:05 GMT References: <12602@brl-adm.ARPA> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatica, Amsterdam Lines: 23 In article <12602@brl-adm.ARPA> V053MF43@ubvmsc.cc.buffalo.EDU (Mike Ayers) writes: \char *wr(a) \int a; \{ \char b = "Arf!"; \ \return(b); \} \ \main() \{ \ printf(" %s ",wr(4)); \} Two things: 1) char *b = "Arf!"; /* notice the star before "b" */ 2) char *wr(); /* in "main": always declare your functions! */ Regards. -- South-Africa: |Maarten Litmaath @ Free U Amsterdam: revival of the Third Reich |maart@cs.vu.nl, mcvax!botter!ark!maart