I figured there would be too, and I did look in the MSDN, but didn't find anything. Maybe I didn't look hard enough.
Printable View
I figured there would be too, and I did look in the MSDN, but didn't find anything. Maybe I didn't look hard enough.
Have a look at this
Code:isdigit, iswdigit
isdigit returns a non-zero value if c is a decimal digit (0 – 9). iswdigit returns a non-zero value if c is a wide character corresponding to a decimal-digit character. Each of these routines returns 0 if c does not satisfy the test condition.
Here are some else if you are ineterested
Code:isalnum
Alphanumeric (A – Z, a – z, or 0 – 9)
isalpha
Alphabetic (A – Z or a – z)
__isascii
ASCII character (0x00 – 0x7F)
iscntrl
Control character (0x00 – 0x1F or 0x7F)
__iscsym
Letter, underscore, or digit
__iscsymf
Letter or underscore
isdigit
Decimal digit (0 – 9)
isgraph
Printable character except space ( )
islower
Lowercase letter (a – z)
isprint
Printable character including space (0x20 – 0x7E)
ispunct
Punctuation character
isspace
White-space character (0x09 – 0x0D or 0x20)
isupper
Uppercase letter (A – Z)
isxdigit
Hexadecimal digit (A – F, a – f, or 0 – 9)
Well I get bored easily looking at lists of function names, so I didn't look that hard :rolleyes:
It is really funny nobody remembered the isdigit function. I searched the isalpha function to get to the isdigit.
isn't there a IsCharAlphaNumeric Api Function?
Yep there is :D
http://msdn.microsoft.com/library/ps...rings_4x43.htm
For some reason I tend to do everything with the API rather than C libraries (altough this eliminates the possibility of cross-platform code, it saves in FileSize)
Look for TINYCRT on MSDN if you want to keep your file sizes down and you use API most of the time.
Thanks mike, will take a look at it :D