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: Re: Talking of void ... Message-ID: <1407@mhres.mh.nl> Date: Tue, 27-Oct-87 02:49:37 EST Article-I.D.: mhres.1407 Posted: Tue Oct 27 02:49:37 1987 Date-Received: Thu, 29-Oct-87 06:19:10 EST References: <1400@mhres.mh.nl> <31905@sun.uucp> Reply-To: jv@mhres.mh.nl (Johan Vromans) Organization: Multihouse N.V., The Netherlands Lines: 19 Keywords: return void cast Summary: happy linting In article <31905@sun.uucp> guy%gorodish@Sun.COM (Guy Harris) writes: >> >> SHND_TYPE catchit (...) { >> ... some useful code ... >> return ((SNHD_TYPE) 0); >> } > >Why are you returning a value here? There are two reasons to return a value: one to keep lint from complaining, and the other reason is a matter of programming principles. If a function is typed, I always use an explicit return value. -- 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 darkness"