// strncat example // source: http://www.cplusplus.com/ #include #include #include #define SIZE 20 int main() { char str1[SIZE]; char str2[SIZE]; strcpy(str1,"To be "); strcpy(str2,"or not to be"); strncat(str1, str2, 6); puts(str1); return 0; }