hello
exp:
char str[255];
char temp[255]="some string";
strcpy(str,"test");
please tell me how to point to the 'e' char in str variable to put it in strcat function:
strcat(temp,pointer to 'e' char)
thanks
This is a discussion on pointer to string char within the C++ Programming forums, part of the General Programming Boards category; hello exp: char str[255]; char temp[255]="some string"; strcpy(str,"test"); please tell me how to point to the 'e' char in str ...
hello
exp:
char str[255];
char temp[255]="some string";
strcpy(str,"test");
please tell me how to point to the 'e' char in str variable to put it in strcat function:
strcat(temp,pointer to 'e' char)
thanks
strcat(temp, &str[1] );
Last edited by Scarlet7; 03-26-2003 at 08:49 AM.
Also can do this I think:
Code:strcat(temp,str+1);
I used to be an adventurer like you... then I took an arrow to the knee.