title: String concatenation without strcat in C
body: <p>I am having trouble concatenating strings in C, without strcat library function. Here is my code</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include&lt;stdlib.h&gt;
  
  int main()
  {
    char *a1=(char*)malloc(100);
    strcpy(a1,"Vivek");
    char *b1=(char*)malloc(100);
    strcpy(b1,"Ratnavel");
    int i;
    int len=strlen(a1);
  
    for(i=0;i&lt;strlen(b1);i++)
    {
       a1[i+len]=b1[i];
    }
  
    a1[i+len]='\0';                
    printf("\n\n A: %s",a1);
  
    return 0;
  }
  </code></pre>
  
  <p>I made corrections to the code. This is working. Now can I do it without strcpy?</p>