Sujet : Re: Checking the loop variable after the loop has ended (Was: Loops (was Re: do { quit; } else { }))
De : Ros (at) *nospam* invalid.invalid (Rosario19)
Groupes : comp.lang.cDate : 25. Apr 2025, 09:42:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjim0kpq3u7uj11cd2nsu4o5bbcpetsn5t@4ax.com>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Forte Free Agent 1.93/32.576 English (American)
On Fri, 25 Apr 2025 10:38:03 +0200, Rosario19 <
Ros@invalid.invalid>
wrote:
for (n = NUM_ENTRIES; (n >= 0) && (node[n] != key); --n) continue;
this code has a bug if array "node" has lenght less or ugual to
NUM_ENTRIES, so the lenght of "node" has to be at last NUM_ENTRIES+1