Thanks to everyone for the string comparison suggestions. I wasn't able to
use them for this project, but I plan to look at them in more depth later to
learn more about the language.
The book I'm using ("Practical C Programming" from O'Reilly) states simply
that strcmp() returns 0 if the strings match and non-zero otherwise. I
remarked about this non-intuitive behavior to someone who pointed out that
the return value is actually -1 if s1 < s2 and +1 if s1 > s2.
I find it interesting the book didn't provide a full description of the
return value. Is this a non-standard feature? Or perhaps they did so to
avoid having to discuss the portability issues relating to character sets
and collating sequences?
Jerry
**********************************************************
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
**********************************************************