iswalpha expects a wide character, but it's not clear what encoding it works with.
If you need to classify Unicode characters, you should use a true Unicode library. You won't do anything good with only standard functions; they are not made for Unicode.