I already removed the goto's, so let's remove the label as well.
This commit is contained in:
parent
f36609e9b6
commit
8fbebea71e
@ -369,16 +369,6 @@ int main(int argc, char ** argv) {
|
|||||||
if(terminal_width > 80) terminal_width = 80;
|
if(terminal_width > 80) terminal_width = 80;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Labels. Yes, and I used a goto.
|
|
||||||
* If you're going to complain about this, you
|
|
||||||
* really need to reevaluate your approach to getting
|
|
||||||
* things done. This works, it works well, and there
|
|
||||||
* is absolutely, positively nothing wrong with using
|
|
||||||
* goto in C, so I'm going to do it.
|
|
||||||
*/
|
|
||||||
ready:
|
|
||||||
|
|
||||||
/* Convert the entire terminal string to lower case */
|
/* Convert the entire terminal string to lower case */
|
||||||
for (k = 0; k < strlen(term); ++k) {
|
for (k = 0; k < strlen(term); ++k) {
|
||||||
term[k] = tolower(term[k]);
|
term[k] = tolower(term[k]);
|
||||||
|
Loading…
Reference in New Issue
Block a user