Article View: dnet.general
Article #1917Re: void* in function prototype in ANSI C
From: Stefan Stapelberg
Date: Sun, 24 Sep 1989 13:01
Date: Sun, 24 Sep 1989 13:01
18 lines
1218 bytes
1218 bytes
In article <1558@isaak.UUCP> luik@isaak.uucp (Andreas Luik) writes:
()int func(char *cp, int i);
()
()void main ()
(){
() int (*fp)(void *ip, int i);
()
() fp = func;
() Warning: assignment of incompatible types in line 7
Vielleicht liegt es gar nicht an der Zuweisung fp = func, sondern an der
unterschiedlichen Prototypen-Definition bei der Funktionsdefinition und
der Definition von fp (einmal char *cp, das andere Mal void *ip).
Gruesse, Stefan
--
For .signature, send mail to: archive-server@systemware, subject: sendsig ;->
Technical Details
Message-ID:
<433@shiva.systemware.de>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mikros!shiva!stefanReferences:
<1558@isaak.UUCP>Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit X-Google-Thread: 10dc06,b91310e90d986cbc X-Google-Attributes: gid10dc06,public X-Google-ArrivalTime: 1989-09-24 15:36:58 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mikros!shiva!stefan From: stefan@shiva.systemware.de (Stefan Stapelberg) Newsgroups: dnet.general Subject: Re: void* in function prototype in ANSI C Keywords: ANSI C, gcc, void*, function prototypes Message-ID: <433@shiva.systemware.de> Date: 24 Sep 89 13:01:45 GMT References: <1558@isaak.UUCP> Reply-To: stefan@systemware.de (Stefan Stapelberg) Distribution: dnet Organization: MIKROS Systemware, Lohr/W-Germany Lines: 18 Posted: Sun Sep 24 14:01:45 1989