检查输入是否为两个字节的十六进制数

for(int i =0;i<28;i++)
{
  char c = toupper(buffer[i]);
  if( !( (c>='0'&& c<='9') || (c>='A'&& c<='F') || c == ' ' ) )
  {
    MSG("WARING:请检查输入是否符合要求... ");
    return;
  }
}

原文地址:https://www.cnblogs.com/fx427103/p/3962835.html