VMS pointer problems continue.
Maarten Litmaath
maart at cs.vu.nl
Fri Mar 25 03:54:05 AEST 1988
In article <12602 at brl-adm.ARPA> V053MF43 at 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 at cs.vu.nl, mcvax!botter!ark!maart
More information about the Comp.lang.c
mailing list