Here is the code:
#include #include #include bool isHex(char * str[20]){ return isxdigit(str); } int main(