A
aleksa
do {
skip: val = *src++; if (val == 1) goto skip;
*dst++ = val;
} while (val != 2);
I'm copying from src to dst all values except ONE and I stop when TWO
is copied.
How to write this so there is no "skip" label?
Or, how do I jump to the beginning of the DO/WHILE loop?
I've tried BREAK/CONTINUE:
break jumps outside of the loop.
continue jumps to the decision point (val != 2)
and what I would like is to jump to the beginning of the do/while loop.
skip: val = *src++; if (val == 1) goto skip;
*dst++ = val;
} while (val != 2);
I'm copying from src to dst all values except ONE and I stop when TWO
is copied.
How to write this so there is no "skip" label?
Or, how do I jump to the beginning of the DO/WHILE loop?
I've tried BREAK/CONTINUE:
break jumps outside of the loop.
continue jumps to the decision point (val != 2)
and what I would like is to jump to the beginning of the do/while loop.