Shidongan

isSeparator

Apr 1st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. int isSeparator(char symToCheck){
  2.     char p[31]="\n\r'!@#$%^&*()-_=+|\\/[]{},.;:\"\0 ";
  3.     int i;
  4.     for(i=0; i<31; i++){
  5.         if(symToCheck==p[i])return 1;
  6.     }
  7.     return 0;
  8. }
Add Comment
Please, Sign In to add comment