IsNum
#4
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:

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
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
IsNum - by SMcNeill - 11-30-2022, 04:00 PM
RE: IsNum - by SMcNeill - 11-30-2022, 04:10 PM
RE: IsNum - by grymmjack - 12-27-2022, 11:15 PM
RE: IsNum - by grymmjack - 12-27-2022, 11:27 PM
RE: IsNum - by SMcNeill - 12-27-2022, 11:58 PM



Users browsing this thread: 2 Guest(s)