I am trying to understand a C code. In some part there is:
for ...{
if condition{
a=1;
break;
}
}
which in a later version is changed to:
for ...{
if condition{
goto done;
}
}
done: a=1;
From my point of view, both vesions should give the same result, but it does not happen. Do you know why?
CORRECTION: The fix is:
for ...{
if condition{
goto done;
}
}
goto notdone;
done:
ok=0;
notdone: