CPU_BOOLEAN ASCII_Cmp (CPU_CHAR c1, CPU_CHAR c2) { CPU_CHAR c1_upper; CPU_CHAR c2_upper; CPU_BOOLEAN cmp; c1_upper = ASCII_TO_UPPER(c1); c2_upper = ASCII_TO_UPPER(c2); cmp = (c1_upper == c2_upper) ? (DEF_YES) : (DEF_NO); return (cmp); }
CPU_CHAR ASCII_ToUpper (CPU_CHAR c) { CPU_CHAR upper; upper = ASCII_TO_UPPER(c); return (upper); }