Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CheckIp( const szIp[ ] )
- {
- new szTemp[ 4 ],iDot,iTemp,iLen = strlen( szIp );
- for( new iIndex;iIndex < iLen;iIndex++ )
- {
- if( szIp[ iIndex ] == '.' )
- iDot++;
- else if( iDot == 2 )
- szTemp[ iTemp++ ] = szIp[ iIndex ];
- }
- return ( 50 <= str_to_num( szTemp ) <= 100 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement