/*****************************************************************************\ * Check to see if the input line is a higher order mode. Higher order * * don't have ")" or " " following the first character. * \*****************************************************************************/ #include #include int high_order (char *com) { char c1, c2; int d=0; sscanf (com, "%c%d", &c1, &d); sscanf (com, "%c%c", &c1, &c2); c2 = c2 - '0'; if (d == c2 && c1 != '1' || d > 0 || c2 == '0') return (1); else return (0); }