title: Palindrome C program convert capital letters to small letters
body: <p>At school Im working on a palindrome C program. I'm almost done, but I would like my program to mark both 'Anna' and 'anna' as a palindrome. I tried some stuff out but nothing really worked.
  My code :</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main() {
      char palindroom[50],a;
      int lengte, i;
      int woord = 0;
  
      printf("This program checks if your word is a palindrome.\n");
      printf("Enter your word:\t");
      scanf("%s", palindroom);
  
      lengte = strlen(palindroom);
  
      for (i = 0; i &lt; lengte; i++) {
          if (palindroom[i] != palindroom[lengte - i - 1]) {
              woord = 1;
              break;
          }
      }
  
      if (woord) {
          printf("Unfortunately, %s is not palindrome\n\n", palindroom);
      }
      else {
              printf("%s is a palindrome!\n\n", palindroom);
      }
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>I've seen some people using tolower from ctype.h but I'd like to avoid that. </p>
  
  <p>So my question is : how do I convert all uppers to lowers in a string?</p>
  
  <p>[ps. some words I may code might seem odd, but that's Dutch. Just erase an o and you'll understand]</p>
  
  <p>Thanks.</p>