Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [code]...
- char strlit[17] = " Sup team? ";
- Find_word_trim(&strlit,1);
- ...[code]
- void Menu_Opt(char *line[17], int set)
- {
- int setno;
- bool on_set=false;
- int i = 0;
- while(line[i]!=NULL)
- if(line[i]=='[' || line[i]==']')
- {
- if (line[i]='[')
- {
- setno++;
- }
- line[i]=' ';
- }
- else if(isspace(line[i]) && isgraph(line[i+1])&&!on_set)
- {
- if(setno==set)
- {
- line[i]='[';
- on_set=true;
- }
- else
- {
- setno++;
- }
- }
- else if(isspace(line[i]) && isgraph(line[i-1])&&on_set)
- {
- line[i]=']';
- }
- i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement