Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #54.9K
cant understand much this is the code [CODE] { char *tok, *str; str = calloc (50, sizeof(char)); tok = strtok(str1, " "); while(tok) { if(strcmp(tok,str2)!=0) { strcat(str, tok); strcat(str, " "); } tok = strtok(NULL, " "); } strcpy(str1, str); return str; } [/CODE] what is the function of while(tok) … |
|
i need help about the String codes.... its about how to delete a string.. like for example it displays like "The Dogs and Cats" the program wants the user to choose what to delete like i want to delete the Dogs.... and the result is now "The and Cats" cause … |