nswitch.c
sima/test/nswitch.c · 311 B
From the archive 970706-sima.tgz
Download the archive « Back to the archive contents
void g0(), g1(), g2(), g3(), g4(), g5(), g6();
int f(int n) {
switch(n) {
default:
g0();
break;
case -1:
g1();
break;
case -2:
g2();
break;
case -3:
g3();
break;
case -4:
g4();
break;
case -5:
g5();
break;
case -6:
g6();
break;
}
return 0;
}