title: error: redefinition of 'var' with a different type: 'char' vs 'string' (aka 'basic_string<char, char_traits<char>, allocator<char> >')
body: <pre><code>void allocateChar(string type, string var, int length, char initToChar){
      char *Thingy = (char*)myMalloc(length);
      char var = initToChar;
      my_free(Thingy);
  
  }
  </code></pre>
  
  <p>I'm getting the error on char var = initToChar and i'm not sure why i'm getting it because based off what i've seen on Google, this error occurs for naming 2 different things the same thing. However, I don't believe i'm doing that because i'm taking whatever the user inputs for the name as a string and then setting it as the char's name. </p>