Path: utzoo!utgpu!attcan!uunet!husc6!mailrus!ncar!umigw!steve From: steve@umigw.MIAMI.EDU (steve emmerson) Newsgroups: comp.lang.c Subject: Re: lint warning messages with malloc() Message-ID: <182@umigw.MIAMI.EDU> Date: 4 Nov 88 13:41:51 GMT References: <142@cjsa.WA.COM> <355@marob.MASA.COM> Reply-To: steve@umigw.miami.edu (steve emmerson) Followup-To: comp.lang.c Distribution: na Organization: University of Miami Lines: 15 I sometimes use: #ifdef lint # define malloc(s) 0 #else extern char *malloc(); #endif Unfortunately, this means that lint(1) can no longer check the type of the argument. C'est la vie. -- Steve Emmerson Inet: steve@umigw.miami.edu [128.116.10.1] SPAN: miami::emmerson (host 3074::) emmerson%miami.span@star.stanford.edu UUCP: ...!ncar!umigw!steve emmerson%miami.span@vlsi.jpl.nasa.gov "Computers are like God in the Old Testament: lots of rules and no mercy"