Xref: utzoo comp.sys.ibm.pc.rt:1004 comp.unix.aix:91 comp.lang.c:22417
Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!tuvie!edvvie!eliza!johnny
From: johnny@edvvie.at (Johann Schweigl)
Newsgroups: comp.sys.ibm.pc.rt,comp.unix.aix,comp.lang.c
Subject: void * not handled in AIX C compiler ?
Keywords: AIX C ANSI
Message-ID: <159@eliza.edvvie.at>
Date: 23 Sep 89 11:27:18 GMT
Organization: Edv GesmbH, Austria/Europa
Lines: 26

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@edvvie.at
       A-1060 Vienna, Austria      Tel: (0043) (222) 59907 257 (8-19 CET)