for (i=1; i<10; i++) {
for (j=1; j<10; j++) {
for (k=1; k<10; k++) {
/* Process data[i][j][k] here */
if (data[i][j][k] < threshold) goto EOLOOPS;
}
}
}
EOLOOPS:
####
LOOPS: for $i (1..10) {
for $j (1..10) {
for $k (1..10) {
# Process $data[$i][$j][$k] here
last LOOPS if $data[$i][$j][$k] < $threshold;
}
}
}
##
##
#define named(name) goto name; name##_break: if (0) name:
#define break(name) goto name##_break;
/* Which then allows you to write... */
named (LOOPS) for (i=1; i<10; i++) {
for (j=1; j<10; j++) {
for (j=1; j<10; j++) {
/* Process data[i][j][k] here */
if (data[i][j][k] < threshold) break(LOOPS);
}
}
}