[Pyrex] char initialisation
Fabien Cromières
fabien.cromieres at gmail.com
Tue Sep 27 03:42:08 CEST 2005
Hi,
I have a small problem: I can't find how to affect value to char variables:
For example, the classical C syntax doesn't work::
cdef char c
c='a'
here, pyrex understand 'a' as a string (that is a char * ) and refuse
to convert it to a char. Same problem with c="a".
For the moment, I use c='a'[0]. It works, but it is not very beautiful.
Is there a more elegant way?
Thanks,
Fabien C.
More information about the Pyrex
mailing list