Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Void function pointers Message-ID: <14971@smoke.brl.mil> Date: 25 Jan 91 17:03:03 GMT References: <2887@casbah.acns.nwu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 20 In article <2887@casbah.acns.nwu.edu> hpa@casbah.acns.nwu.edu (Peter Anvin) writes: >Turbo C++ always terminates with a hard "Type mismatch" error. Is this >correct behaviour, and if so, is there a way to declare a pointer to a >function returning *anything or void* but still specify its parameters? Of course the types did not match; that was obvious and the diagnostic was quite appropriate. There is no such thing as a C function returning polymorphic types. If the return value is sometimes needed and is an int then, and is sometimes not needed, the function should be defined as returning int. >P.S. I haven't been able to figure out... is X3J11 ANSI C *finalized* (ANSI >C-90) or are we still muddling around with working drafts? Welcome back from Outer Mongolia! There are now both American and International standards for C; the two are technically identical for the moment. ANS X3.159-1989 was approved in December 1989.