const and struct pointers

Henry Spencer henry at utzoo.uucp
Sun Feb 25 10:37:25 AEST 1990


In article <1214 at watserv1.waterloo.edu> semicon at watsci.UUCP (Robert Adsett) writes:
>...If I either add const to the prototype or remove it from
>the argument to junk it compiles without error.  Is there some reason
>that 'const double *b' should be treated differently from 'const
>struct qwert *c'? ...

I'd diagnose this as a buggy or obsolete compiler.  The semantics of
const in ANSI C were a moving target for quite some time.
-- 
"The N in NFS stands for Not, |     Henry Spencer at U of Toronto Zoology
or Need, or perhaps Nightmare"| uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list