Forgive me if what I ask is a novice question. I have some C code that was
asked to bring to Python I prefer IronPython and remember seeing that CTYPES
was implemented into it :-)
I am not really the best C coder and was suggested by C coders that it
couldn't be done in Python. I aim to prove them wrong
int main(int argc, char **argv)
{
int (*func)();
func = (int (*)()) myCode;
printf("myCode Length is : %d",strlen(myCode));
(int)(*func)();
}
is it possible to cast to a function pointer in IronPython using CTYPES I
was looking at the CTYPES docs and from what I understand CTYPES has
something called callback functions.
Anyway any idea or help
would be very valuable
Thank You
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com