Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.lang.c Subject: Talking of void ... Message-ID: <1400@mhres.mh.nl> Date: Sat, 24-Oct-87 15:12:19 EST Article-I.D.: mhres.1400 Posted: Sat Oct 24 15:12:19 1987 Date-Received: Mon, 26-Oct-87 02:13:38 EST Organization: Multihouse NV, the Netherlands Lines: 18 Keywords: return void cast This problem occured when I ported a program to a UN*X system on which signal handlers were "void (*func)()", instead of the usual "int (*func)()". I used a "typedef int SHND_TYPE" in a system-dependent include file, which I changed to "typedef void SHND_TYPE". But then I ran in problems with the return *action*, not the *value*: SHND_TYPE catchit (...) { ... some useful code ... return ((SNHD_TYPE) 0); } Maybe returning something which has been cast to void should be made equivalent to "return;". -- Johan Vromans | jv@mh.nl via European backbone Multihouse N.V., Gouda, the Netherlands | uucp: ..{?????!}mcvax!mh.nl!jv "It is better to light a candle than to curse the da and a