Path: utzoo!attcan!uunet!mailrus!ncar!groucho!steve From: steve@groucho.ucar.edu (Steve Emmerson) Newsgroups: comp.lang.c Subject: Re^2: Discarded Function Values (To Cast or Not to Cast) Message-ID: <5412@ncar.ucar.edu> Date: 21 Nov 89 18:01:57 GMT References: <316@voa3.UUCP> <1989Nov17.154621.2698@aqdata.uucp> <1989Nov18.062322.12728@twwells.com> <11644@smoke.BRL.MIL> <1989Nov19.171815.17445@twwells.com> <11161@riks.csl.sony.co.jp> Sender: news@ncar.ucar.edu Lines: 18 diamond@csl.sony.co.jp (Norman Diamond) writes: >What DO you do about calls to malloc? 1) Put something like this in /usr/lib/lint/llib-lc and regenerate llib-lc.ln: void lint_malloc(n) unsigned n; { n = n; } 2) Put something like this in /usr/include/malloc.h (if you have one): #ifdef lint # define malloc(x) (lint_malloc(x), 0) #else extern char *malloc(); #endif ----- Steve Emmerson steve@unidata.ucar.edu