CompuServe Messages

switch()

    18-Dec-91 14:01:51
Sb: #17874-switch()
Fm: Rob Salmon 71420,471
To: Vic Wagner 76046,3004
Ah-ha…now I see. No wonder you teach thistuff. Switch() choked when I tried to feed it "argv[1]" but worked with the single character pointer. The strcmp() and strcpy() way of calling a function from "argv" seems inelegant. Care to suggest another way? What I'm trying to do is write a prog like unix "man".