How to stop lint complaining about malloc()
2656-Daniel R. Levy00000000000
levy at mtcchi.uucp
Mon Jul 2 09:03:10 AEST 1990
scottl at mercury.sybase.com (Scott Luebking) writes:
<One trick I found helpful to get around the lint/malloc problem is to include:
<#if LINT
<#define malloc(x) NULLPTR
<#endif /* LINT */
<at the beginning of the file or in a central include file. When lint is
<executed, the LINT macro is defined.
Maybe this is a stupid question on my part, but... might this elicit complaints
about test of a constant (you DO check the result of malloc, don't you)?
--
Daniel R. Levy
Memorex Telex Corporation
Naperville IL
..!uunet!tellab5!mtcchi!levy
More information about the Comp.lang.c
mailing list