int send(constchar * ftp, constchar * user, constchar * pass, constchar * pathondisk, char * nameonftp)
char * buf=nameonftp;
cout<<pathondisk<<endl;//Here i get the correct output
cout<<pathondisk<<endl;//but here i get only one single character
I have only pasted code that was causing problem, would you please tell me how this can happen? is there anything wrong the way i am using strcat(). Its weird because the 'pathondisk' is a const char and even though i applied strcat() on another string the contents of 'pathondisk' are altered.