lint warning messages with malloc()
    steve emmerson 
    steve at umigw.MIAMI.EDU
       
    Fri Nov  4 23:41:51 AEST 1988
    
    
  
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 at umigw.miami.edu [128.116.10.1]
SPAN: miami::emmerson (host 3074::)      emmerson%miami.span at star.stanford.edu
UUCP: ...!ncar!umigw!steve               emmerson%miami.span at vlsi.jpl.nasa.gov
"Computers are like God in the Old Testament: lots of rules and no mercy"
    
    
More information about the Comp.lang.c
mailing list