title: convert from char* to char[] in c
body: <p>I wrote this code:</p>
  
  <pre><code>char *del;
  char *str1;
  int d = 0, i = 0, s = 0;
  //char str[] = new char[29];
  printf("enter the nember of delim elements: ");
  scanf("%d", &amp;d);
  prinf("\nenter number of str elements: ");
  scanf("%d", &amp;s);
  
  /* Initial memory allocation */
  del = (char *) malloc(d * sizeof(char));
  str1 = (char *) malloc(s * sizeof(char));
  for(i = 0; i &lt; d; i++) {
      scanf("%s", del+i);
  }
  </code></pre>
  
  <p>and now I would like to know how can I copy <code>*del</code> to <code>del []</code>?</p>
  
  <p>because after that I need to send <code>del []</code> to a function</p>
  
  <p>thanks :)</p>