Append substring to string: strncat
#include <stdio.h>
#include <string.h>
int main ()
{
char str1[20];
char str2[20];
strcpy (str1,"qqq34567790");
strcpy (str2,"333333");
strncat (str1, str2, 6);
puts (str1);
return 0;
}
Related examples in the same category