add <ctype,h> in lib