You realise that you can re-write
Switch[atoi(argv[i]) - 1] = 1;
as
Switch[argv[i][0] - '1'] = 1;
which removes the call to silly olfd atoi and is slightly more efficient.
Switch[atoi(argv[i]) - 1] = 1;
as
Switch[argv[i][0] - '1'] = 1;
which removes the call to silly olfd atoi and is slightly more efficient.
Comment