title: toupper function in C
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;ctype.h&gt;
  
  char* strcaps(char* s)
  {
          while (*s != '\0')
          {
                  toupper(*s);
                  s++;
          }
          return s;
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>int main()
  {
          char makeCap[100];
          printf("Type what you want to capitalize: ");
          fgets(makeCap, 100, stdin);
          strcaps(makeCap);
          return 0;
  }
  </code></pre>
  
  <p>this program compiles just fine, but when I run it, it doesn't output anything. what am i missing here?</p>