Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!atbowler From: atbowler@watmath.UUCP (Alan T. Bowler [SDG]) Newsgroups: net.lang.c Subject: Re: casts to (void) Message-ID: <15908@watmath.UUCP> Date: Wed, 24-Jul-85 18:05:29 EDT Article-I.D.: watmath.15908 Posted: Wed Jul 24 18:05:29 1985 Date-Received: Thu, 25-Jul-85 04:21:04 EDT References: <11@brl-tgr.ARPA> <1288@eagle.UUCP> Reply-To: atbowler@watmath.UUCP (Alan T. Bowler [SDG]) Organization: U of Waterloo, Ontario Lines: 9 Summary: For functions like MEMCPY whose return value will normally be ignored perhaps a more sensible approach is the one used by the Waterloo SDG version of Lint. It has a lint directive which indicates that is applied where the function is defined, which tells LINT that this routine has an optional result, and it is really not an error to ignore it. This avoids a lot of clutter in source code like (void) memcpy(a, b, c); used sparingly it is a great help.