[Cffi-devel] Is there anything in CFFI where I can cast an integer to a char and the result is a letter..

Daniel Herring dherring at tentpost.com
Sun May 18 00:11:32 UTC 2014


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
>  
> 
>


More information about the cffi-devel mailing list