DiogoB

[Pawn] IsNumeric(const string[])

Mar 27th, 2012
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.23 KB | None | 0 0
  1. IsNumeric(const string[])
  2. {
  3.     static
  4.         x,
  5.         y;
  6.  
  7.     x = 0;
  8.     y = strlen(string);
  9.  
  10.     for( ; x < y; x++)
  11.     {
  12.         if(string[x] < '0' || string[x] > '9')
  13.             return false;
  14.     }
  15.     return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment