res = Register(argv[i]);
res = Register(register, argv[i]);
int ProcessArgs(int argc, char *argv[]){  int i = 1;  nsresult res;  while (i < argc) {    if (argv[i][0] == '-') {      int j;      for (j = 1; argv[i][j] != '\0'; j++) {        switch (argv[i][j]) {        case 'u':          gUnreg = PR_TRUE;          break;        default:          cerr << "Unknown option '" << argv[i][j] << "'\n";        }      }      i++;    } else {      if (gUnreg == PR_TRUE) {        res = Unregister(argv[i]);        if (NS_SUCCEEDED(res)) {          cout << "Successfully unregistered: " << argv[i] << "\n";        } else {          cerr << "Unregister failed (";          print_err(res);          cerr << "): " << argv[i] << "\n";        }      } else {        res = Register(argv[i]);        if (NS_SUCCEEDED(res)) {          cout << "Successfully registered: " << argv[i] << "\n";        } else {          cerr << "Register failed (";          print_err(res);          cerr << "): " << argv[i] << "\n";        }      }      i++;    }  }  return 0;}