12-27-2022, 11:27 PM
You have to copy the file ctype.h into the QB64PE directory I guess to make this work, but it does work.
I found my ctype.h file here: i:\git\QB64pe\internal\c\c_compiler\x86_64-w64-mingw32\include\
Copied that to i:\git\QB64pe\
Then used like this:
I found my ctype.h file here: i:\git\QB64pe\internal\c\c_compiler\x86_64-w64-mingw32\include\
Copied that to i:\git\QB64pe\
Then used like this:
Code: (Select All)
DECLARE LIBRARY
FUNCTION isdigit% (BYVAL c AS INTEGER) 'is a decimal digit
END DECLARE
PRINT isdigit%(ASC("$")) ' returns 0
PRINT isdigit%(ASC("7")) ' returns 1