Subj : Re: strange string pointer to strings...? To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Sat Oct 01 2005 10:39 am Thomas Maeder [TeamB] wrote: >>>> /* find matching word and print its meaning */ >>>> do { >>>> if(!strcmp(*p, word)) { >>>> puts("Meaning:"); >>>> puts(*(p+1)); >>>> break; >>>> } >>>> if(!strcmp(*p, word)) break; >>> >>>This line is completely superfluous. >> >> Not so... It terminates the program after finding one word. > >Doesn't the break statement in the first if block already do that? Oh, wait, you're right. That crazy formatting threw me. I was thinking it was outside the inner loop. .