Page 1 of 1

isalpha function in C runtime library (MSVCRT.DLL)

Posted: Mon Jun 25, 2018 2:03 pm
by Poplar

Code: Select all

OpenLibrary(0, "msvcrt.dll")
isalpha = GetFunction(0, "isalpha")
CloseLibrary(0)

Debug CallCFunctionFast(isalpha, 'i')
[/color]

Re: isalpha function in C runtime library (MSVCRT.DLL)

Posted: Mon Jun 25, 2018 2:11 pm
by NicTheQuick
Yes.

Re: isalpha function in C runtime library (MSVCRT.DLL)

Posted: Mon Jun 25, 2018 3:00 pm
by Trond
Don't call functions after closing the library.

Anyway, this way is better, because it checks that you got the correct number of parameters, and the syntax to call the function is nicer:

Code: Select all

ImportC "msvcrt.lib"
  isalpha(c.i)
EndImport

Debug isalpha('i')