CompuServe Messages

switch()

    17-Dec-91 13:59:00
Sb: #17827-switch()
Fm: Vic Wagner 76046,3004
To: Rob Salmon 71420,471
Rob, Your description of argv is correct; argv is an array of pointers to char (strings), you find either yours or "char **argv". The problem is that "*argv[1]" IS only a single character. If you're intention is to look at the 'entire' string, then you want "argv[1]". Unfortunately, you can't "switch" on a string (they are variable length, and switch only works on things (scalars) of size less than or equal to LONG.