Subj : Re: string comparison To : borland.public.cpp.borlandcpp From : "Sebastian Ledesma" Date : Mon Nov 24 2003 10:53 am Suggestion: toupper(int ch); if (toupper(passedstring[0])>='A' && toupper(passedstring[0])<='Z') ... Saludos Sebastian "Base8" escribió en el mensaje news:3fc20683$1@newsgroups.borland.com... > Is there a simple way to do this? Any help appreciated. My intention is to > look at the first character of a passed string and verify that it contains > either an upper or lower case alpha ( >= a && <= z ) and ( >= A && <= Z ). > So, I figure I'd do a case insensitive comparison on the string and simply > test for zero (i.e. below). Well, no dice. I'm sure I've seen this, I just > can't put my fingers on it. > > > .