Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock param_cutleft(str[])
- {
- new len = strlen(str[]),
- index = -1;
- if(!len)
- return 0;
- new
- ignorespaces = 1;
- while(++index < len)
- {
- if(str[index] == EOS)
- {
- str[0] = 0;
- return 0;
- }
- if(str[index] == ' ')
- {
- if(ignorespaces)
- continue;
- strdel(str, 0, index);
- return 1;
- }
- else
- if(ignorespaces)
- ignorespaces = 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement