Skip to content
Snippets Groups Projects
Commit 93337abb authored by Jason Hobbs's avatar Jason Hobbs Committed by Wolfgang Denk
Browse files

Add isblank


Existing ctype checks are implemented using a 256 byte lookup table,
allowing each character to be in any of 8 character classes. Since there
are 8 existing character classes without the blank class, I implemented
isblank without using the lookup table.  Since there are only two blank
characters - tab and space - this is a more reasonable approach than
doubling the size of the lookup table to accommodate one more class.

Signed-off-by: default avatarJason Hobbs <jason.hobbs@calxeda.com>
parent c8a2079e
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment