title: Converting char * to Uppercase in C
body: <p>I'm trying to convert a <code>char *</code> to uppercase in c, but the function <code>toupper()</code> doesn't work here.</p>
  <p>I'm trying to get the name of the the value of temp, the name being anything before the colon, in this case it's &quot;Test&quot;, and then I want to capitalize the name fully.</p>
  <pre><code>void func(char * temp) {
   // where temp is a char * containing the string &quot;Test:Case1&quot;
   char * name;
  
   name = strtok(temp,&quot;:&quot;);
  
   //convert it to uppercase
  
   name = toupper(name); //error here
   
  }
  </code></pre>
  <p>I'm getting the error that the function <code>toupper()</code> expects an <code>int</code>, but receives a <code>char *</code>. Thing is, I have to use <code>char *</code>s, since that is what the function is taking in, (I can't really use <code>char</code> arrays here, can I?).</p>
  <p>Any help would be greatly appreciated.</p>