Path: utzoo!mnetor!uunet!husc6!ncar!ames!sri-spam!sri-unix!quintus!ok From: ok@quintus.UUCP (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: VMS pointer problems continue. Message-ID: <812@cresswell.quintus.UUCP> Date: 24 Mar 88 06:06:28 GMT References: <12602@brl-adm.ARPA> Organization: Quintus Computer Systems, Mountain View, CA Lines: 18 In article <12602@brl-adm.ARPA>, V053MF43@ubvmsc.cc.buffalo.EDU (Mike Ayers) writes: : No one gave me a solution last time, so here I am again to state the : problem a little more clearly. Thanks to a new utility, you can see firsthand : the kind of frustration I'm getting here: : $type q.c : char *wr(a) : int a; : { : char b = "Arf!"; : return(b); : } ... stuff deleted ... Unless there is a typo, the mistake is in the line char b = "Arf!"; It should be char *b = "Arf!"; At any rate, adding that one asterisk made the program work on a SUN.