Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.80K
1 Posted Topic
use strtok(firstname,"JAC") to get the string: "K\0" lets say its inkSEG1 like this: char *inkSEG1=strtok(FirstName,"JAC"); then char *strSEG2=strtok(LastName, "ROB"); now u have "K\0" and "INSON\0" copy first 2 letters from strSEG2 to new segment lets say: strncpy(word1, strSEG2, 2); rigth now all u need is to add them so.. strncat(word1,strSEG1,1); …
The End.
GunZaman