Implement the isascii function

Implement the isascii function as efficiently as you can..
How do you handle errors if you had to