03.12.2014, 16:24
Quote:
|
So, I need some kind of function which would forbid usage of any symbols or so, so basically only numbers and letters can be used.
How can I do it? like do I need to list all symbols or? |
pawn Код:
stock IsValidPassword( const password[ ] )
{
for( new i = 0; password[ i ] != EOS; ++i )
{
switch( password[ i ] )
{
case '0'..'9', 'A'..'Z', 'a'..'z': continue;
default: return 0;
}
}
return 1;
}


