VMS pointer problems continue.

Richard A. O'Keefe ok at quintus.UUCP
Thu Mar 24 16:06:28 AEST 1988


In article <12602 at brl-adm.ARPA>, V053MF43 at 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.



More information about the Comp.lang.c mailing list