title: Allocating Memory for string in c?
body: <p>How do i allocate the memory for a given char array *bla in c?</p>
  
  <pre><code>blaarray = (char*)malloc(strlen(bla)*sizeof(bla));
  </code></pre>
  
  <p>or</p>
  
  <pre><code>blaarray = (char*)malloc(strlen(bla)*sizeof(char*));
  </code></pre>
  
  <p>or neither?</p>
  
  <p>thanks</p>
  
  <p>**note edits to reflect silly typo. I accidently pasted the options incorrectly</p>