void * not handled in AIX C compiler ?
Johann Schweigl
johnny at edvvie.at
Sat Sep 23 21:27:18 AEST 1989
AIX C allows the use of void functions, and the (void *) typecast.
Declaring a variable as void * does not work. The effect is the same
as if the variable had never been defined. Example:
main() {
void *foo;
int bar;
foo = &bar;
}
results in:
"foo.c", line 6: foo undefined
"foo.c", line 6: warning: illegal combination of pointer and integer, op =
which is not quite correct.
Especially I see no sense behind supporting void * in a typecast but not
in a declaration.
Am I wrong?
Any comments?
--
------------------------------------------------------------------
EDV Ges.m.b.H Vienna Johann Schweigl
Hofmuehlgasse 3 - 5 USENET: johnny at edvvie.at
A-1060 Vienna, Austria Tel: (0043) (222) 59907 257 (8-19 CET)
More information about the Comp.unix.aix
mailing list