Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock GetOnlySpacesText(const string[])
- {
- new num, size = strlen(string);
- for(new i=0; i<size; i++)
- {
- switch(string[i])
- {
- case ' ', '\t', '\r', '\n': num += 1;
- }
- }
- if(num == size) return 1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment