Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created November 11, 2010 14:17
Show Gist options
  • Save natebenes/672544 to your computer and use it in GitHub Desktop.
Save natebenes/672544 to your computer and use it in GitHub Desktop.
check if the char is digit or alphabetic letter
/*======================================================
* check if the char is digit or alphabetic letter
*
*=======================================================*/
int isChar(char t)
{
if ( (t>='0' && t <= '9')||(t >= 'A' && t <= 'Z')||(t >= 'a' && t <= 'z'))
return 1;
else
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment