|
From: Peter T. <pt...@li...> - 2011-11-02 12:55:57
|
On Wed, 2 Nov 2011 13:20:55 +0100, Baurzhan Ismagulov wrote:
> On
Tue, Nov 01, 2011 at 11:33:20PM +0100, Peter Toft wrote:
>> int
i=-1,a[2],b[2],c[2]; a[0] = 1; a[1] = 2; b[0] = 3; b[1] = 4; c[0] = 5;
c[1] = 6; printf("%i %in",b[i],a[i]);
> ...
>
>> Are there
supplementary tools I should check?
> There is also mudflap of gcc which
claims to catch exactly this sort of errors. It isn't perfect, either.
With kind regards, Baurzhan.
I might be mistaking here.... but if the
value if "i" is set from argv or alike then mudflap cannot help on this
problem.
Best
Peter
--
Peter Toft, PhD
http://petertoft.dk
|