void *a
Andrew Koenig
ark at alice.UUCP
Tue May 30 21:37:38 AEST 1989
In article <5197 at rpi.edu>, kyriazis at rpics (George Kyriazis) writes:
struct a {
void *pt;
} foo;
main()
{
foo.pt = (void *) &foo;
}
> The compiler complains that 'pt' is not defined, on ANY system I tried
> it except the SUN. What's so special about suns and/or void * ???
It works fine here. Are you sure you transcribed it correctly
on those other machines? I don't see anything obviously wrong.
--
--Andrew Koenig
ark at europa.att.com
More information about the Comp.unix.questions
mailing list