1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
extern void abort (void); int main() { int hicount = 0; unsigned char *c; char *str = "\x7f\xff"; for (c = (unsigned char *)str; *c ; c++) { if (!(((unsigned int)(*c)) < 0x80)) hicount++; } if (hicount != 1) abort (); return 0; }