switch()
Well, I'm no expert, but I think you got it half right. I believe that the
switch statement is limited to either a type char or int (they're
essentially the same anyway) so strings are out.
On the argv[] portion, however, if you'll notice the declaration of argv (
*argv[] ) you can see that what is being set up is an array of pointers. So
in this case by dereferencing argv[1] you will get a pointer out of the
array. Knowing the type of information it represents lets you know that
statements of the type argv[1][0] will give you the first letter of the
first command line argument (since argv[0] returns the program name
itself).
Anyway, I noticed the name and I was wondering if you are the Khalid that
has written the requestor library? If you are, thanks. You have written
an extremely good program. I started using it just prior to getting a 3000
with WB2.0, so it doesn't get the workout now that it did before, but it is
a solid program nonetheless.
See Ya,
Bill
P.S. And if you aren't that Khalid, just ignore the previous comments 😉
– via Whap!