Oh, and
Code:
switch (*argc[0])
is very wrong. Look at what variable you are using here.