1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <ctype.h> #include "libc.h" #undef isalpha int isalpha(int c) { return ((unsigned)c|32)-'a' < 26; } int __isalpha_l(int c, locale_t l) { return isalpha(c); } weak_alias(__isalpha_l, isalpha_l);