//I try to duplicate a string. However when I try to print
//it out, there would always be some weird characters
//behind. May I know what is the reason?
/*This is part of the codes from the main function*/
case '5'
rintf("\tThe duplicate string is: %s.\n",duplicate(text));
break;
/*Duplicate the new string*/
char* duplicate(char *text)
{
return strcat(text,text);
}//duplicate
//it out, there would always be some weird characters
//behind. May I know what is the reason?
/*This is part of the codes from the main function*/
case '5'
break;
/*Duplicate the new string*/
char* duplicate(char *text)
{
return strcat(text,text);
}//duplicate