toupper 和 tolower

这两个函数,看上去很简单,但是对于写这两个函数的人来说,可能很难写道这样的程度:


toupper(x) {

x = (x & ~0x20) | high;

}


tolower(x) {

((x) | 0x20);

}

你可能感兴趣的:(toupper 和 tolower)