title: Need assistance with converting const char* word to a lowercase version of it
body: <p>I am trying to convert a a const.char to a lowercase version of that word. Here is the code I currently I have:</p>
  
  <pre><code>int i=0;
  char DuplicateArray[45];
  int sizevalue=0;
  Node* NodePointer=NULL;
  unsigned int hashval=0;
  int counter=0;
  sizevalue=strlen (word);
  
  strncpy(&amp;DuplicateArray[counter], word,sizevalue);//word is the const char pointer.
  DuplicateArray[sizevalue+1] = '\0';
  hashval=hash(DuplicateArray);//function I call to determine hash value
  while ( DuplicateArray[i] != '\0' )
  {
      DuplicateArray[i] = tolower(DuplicateArray[i]);    
      i++;
  }
  </code></pre>
  
  <p>With this code I have, however, I am not able to make the characters in the array lower cased. Does anyone have any idea on what I am doing wrong?</p>