Mail Archives: djgpp/2000/12/01/10:36:32
Paulo J. Matos aka PDestroy <pdestroy AT netcabo DOT pt> wrote:
> Hi, Is there any software that will scan my C program and warn me about any
> not freed memory, not closed file descriptor, etc?
Doing analyses of that kind statically (i.e. by looking at the C
sources) is hard or impossible. You usually have to do it at runtime,
by putting a layer of abstraction between malloc() & friends and the
target program that adds various types of checking.
YAMD is one of the tools that do this.
> I've heard about lint but I don't know what it does or even if there
> is lint for DOS/WINDOWS.
There are several, I think. But none of them is available for free or
compatible with DJGPP, AFAIK.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -