I know these are very basic language questions, but since I am working on QmailAdmin, please humor me...

1. Does switch/case work with strings?

switch( command ) {
  case "showusers" :
    show_users();
    break;

  case "showaliases" :
    show_aliases();
    break;

}


2. How much trouble is it to add or remove .c source files? Say all the code in alias.c is obsolete except for a function or two and I want to move those functions to a different file and remove it.



Right now I am searching for code that is never called and removing it.


Rick



Reply via email to