Hi Folks,
I hope it's not inappropriate to ask a C language question here.
Is there a more elegant way to do the equivalent of a switch statement for a
character string value than a chain of if (strcmp())... else if
(strcmp())... else if.... ?
What I tried to do was
switch (char-var) {
case "string1":
...
}
Eventually I figured out character strings aren't a data type in C. Sigh...
Thanks.
Jerry
(PL/I programmer struggling to learn C while writing code on a deadline
GAK!)
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************