Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!skinfaxe.diku.dk!jensting From: jensting@skinfaxe.diku.dk (Jens Tingleff) Newsgroups: comp.lang.c Subject: Re: Why use (void) func() ? Message-ID: <1990Sep24.193012.14074@diku.dk> Date: 24 Sep 90 19:30:12 GMT References: <586@dptechno.UUCP> Sender: news@diku.dk (The Netnews System) Organization: Department Of Computer Science, University Of Copenhagen Lines: 39 dave@dptechno.uucp (Dave Lee) writes: [..] >To both 1 and 2 I reply: >If I wanted to check the return value, I would have. >This is not the sort of thing that results from a typo or unconcious omission. >I never type GOTCHA! Try these two int function_with_some_side_effects(); other func() { int a,b; b = function_with_side_effects(some_global); a = b + function_with_side_effects(some_global); } ---OR--- { int a,b; b = function_with_side_effects(some_global); a = b ; function_with_side_effects(some_global); } ^ +-- Grade A typo, if you keyboard has '+' as SHIFT ';' (such as this keyboard, a TVI955) Enough said.. . Jens Jens Tingleff MSc EE, Institute of Computer Science, Copenhagen University Snail mail: DIKU Universitetsparken 1, DK2100 KBH O "It never runs around here; it just comes crashing down" apologies to Dire Straits