Face9000

GetOnlySpacesText

Jan 22nd, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.27 KB | None | 0 0
  1. stock GetOnlySpacesText(const string[])
  2. {
  3.     new num, size = strlen(string);
  4.     for(new i=0; i<size; i++)
  5.     {
  6.         switch(string[i])
  7.         {
  8.             case ' ', '\t', '\r', '\n': num += 1;
  9.         }
  10.     }
  11.     if(num == size) return 1;
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment