Mega Code Archive
Categories
/
C
/
String
Append substring to string
#include
#include
int main () { char str1[20]; char str2[20]; strcpy (str1,"qqq34567790"); strcpy (str2,"333333"); strncat (str1, str2, 6); puts (str1); return 0; }