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
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 09:49 AM.
Also can do this I think:
Code:strcat(temp,str+1);
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens