   Converting a const char to lowercase.
  How can I make a const care lowercase?Thanks~ John DiSanti 
  look up strlwr() ;  You can''t make a const char lowercase.You can make a copy of a const char lowercase with strlwr. ;  const care? constant care? const char  [All The Web] [Google!] [ Look I DONT Follow Trends ]  ;  Woops. Typo... sorry about that.  I will try strlwr(). Thanks! ;  Ok,strlwr() doesn''t take const char. I get an error:error C2664: ''strlwr'' : cannot convert parameter 1 from ''const char *'' to ''char *''   Conversion loses qualifiersIs there a possible way around this? ;  strlwr works on the memory in the input string thus no const''s. You need to make a copy of that const char with strcpy and work on that string. Make sure you use strlen etc. to not to override your buffer ;quote:Original post by EL  You can''t make a const char lowercase.You can make a copy of a const char lowercase with strlwr.   Like he said. If you could just make it lowercase directly, it wouldn''t be very const-y now would it? ;  tolower(char)err...maybe defined in <cstdlib>, but I''m too busy right now to look up the header...someone here will verify it. ;  Make a copy. Either using strdup() (and free() it later) or by strncpy()-ing into a char array. Then strlwr() that copy, and use that. 