hi everyone...
i"ve to pass a string as a returning value.but wat is the problem is there is an integer in the middle of it.the problem arise here..
char* my_string( char* dest,char *c)
{
char str1[25] = "C:\\windows\\";
char str2[25];
char str3[25] = ".jpg ";
strcat(dest,str1); //append str2 to str and return str
strcat(dest,*str2);
strcat(dest,str3);
printf("%s",dest);
return dest ;
}
i"m getting str2 value in main function.
My output should be C:\windows\1.jpg"
i dont know where to correct the program.waiting for a soon reply
thanks
cheran