Re: [cython] bin2hex conversion

Stefan Behnel <[email protected]> Fri, 09 May 2008 17:44:44 +0200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
Hi,

Martijn Meijers wrote:
>     cdef char hexstr[] = "0123456789ABCDEF"

this should work:

    cdef char* hexstr = "0123456789ABCDEF"

or, for use in Pyrex:

    cdef char* hexstr
    hexstr = "0123456789ABCDEF"

Stefan