Article View: comp.sys.ibm.pc.rt
Article #372void * not handled in AIX C compiler ?
From: Johann Schweigl
Date: Sat, 23 Sep 1989 11:27
Date: Sat, 23 Sep 1989 11:27
26 lines
1210 bytes
1210 bytes
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)
Technical Details
Message-ID:
<159@eliza.edvvie.at>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!tuvie!edvvie!eliza!johnnyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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