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

Joeish W joeish80829 at yahoo.com
Fri May 16 21:33:39 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20140516/cc6fe0f5/attachment.html>


More information about the cffi-devel mailing list