Code Snippets C

#include
#include
#define STR_LENGTH 60
void main() {
char str1[STR_LENGTH] = "String Sample";
char str2[STR_LENGTH] = ",String Sample";
if(STR_LENGTH > strlen(str1) + strlen(str2)) /* Enough space ? */
printf("\n%s\n", strcat(str1, str2) ); /* yes, so print joined string */
else
printf("\n no enough room.");
}