On Tue, 18 Oct 2005 23:57:54 GMT, Jay Nabonne
<> wrote in comp.lang.c++:
> On Tue, 18 Oct 2005 15:48:13 -0700, GRoll21 wrote:
>
> > I know there is a function but I cannot seem to find it. There should
> > be a way to uppercase a char right?
> >
> > Here is what I got.
> >
> > cout << "Enter title of a book for look up: ";
> > cin >> firstString;
> >
> > if (strcmp(toupper(firstString), toupper(bookTitle[index])) == 0)
> >
> > then i check the book they enter to a book in my bookTitle array. How
> > can I make it so it puts both firstString and bookTitle to uppercase?
>
> If you just want to compare, you can use the case-insensitive version of
> strcmp. Now is it strcmpi or stricmp? (I'm not sure. 
>
> - Jay
There is no case-insensitive version of strcmp() in the standard C or
standard C++ library. What you are not sure of is the name of some
particular non-standard function on some specific implementation, or
perhaps the different names of several non-standard functions on
different implementations.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html