updated ctype functions to new names in c api