[Cffi-devel] Is there anything in CFFI where I can cast an integer to a char and the result is a letter..
This is the code I'm referring to : char c = (char)waitKey(); if( c == 27 ) break; if( c == 'r' ) {..... The function waitKey, above, outputs an integer as return and it's being cast to a char to make the result a letter. Can this be done in CFFI.I have a CFFI wrapper for waitKey btw, that has an :int return
Do the standard CL code-char and char-code functions do what you want? - Daniel On Fri, 16 May 2014, Joeish W wrote:
This is the code I'm referring to :
char c = (char)waitKey();
if( c == 27 ) break;
if( c == 'r' ) {.....
The function waitKey, above, outputs an integer as return and it's being cast to a char to make the result a letter. Can this be done in CFFI. I have a CFFI wrapper for waitKey btw, that has an :int return
participants (2)
-
Daniel Herring
-
Joeish W