🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.misc
Article #159

Re: Need help with C bug.

#159
From: Geoff Kuenning
Date: Sun, 09 Apr 1989 20:27
10 lines
940 bytes
In article <765@happym.wa.com> kent@happym.UUCP (0000-Kent Forschmiedt) writes:

> p && free(p);

Note that this is an illegal statement on most modern Unixes, because free()
is (or should be) declared with a void return value.  (Of course, if free()
is replaced by any routine that returns a value, the compiler should be
able to handle it, regardless of the fact that it is horrible coding style.)
-- 
	Geoff Kuenning   geoff@ITcorp.com   uunet!desint!geoff
Technical Details
Message-ID: <21@desint.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!elroy!gryphon!desint!geoff
References: <765@happym.wa.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!elroy!gryphon!desint!geoff
From: geoff@desint.UUCP (Geoff Kuenning)
Newsgroups: comp.bugs.misc
Subject: Re: Need help with C bug.
Keywords: pcc2 char array code generation
Message-ID: <21@desint.UUCP>
Date: 9 Apr 89 20:27:05 GMT
References: <765@happym.wa.com>
Reply-To: geoff@desint.UUCP (Geoff Kuenning)
Distribution: usa
Organization: Interrupt Technology Corp., Manhattan Beach, CA
Lines: 10