best way to switch on a string in C - Stack Overflow
In C there is a "switch" construct, which enables one to execute different conditional branches of code based on an test integer value, e.g.: int a; /* Read the value of "a" from some source, e.g. user input */ switch ( a ) { case 100: // Code break; case...