> #include <stdio.h>
You'll need to import the right symbols from <stdio.h>. The
following program compiles.
----
cdef extern from "stdio.h":
char *malloc(int x)
int sprintf(char *s, ...)
cdef tostring(void *p):
cdef char *s
s = malloc(50*sizeof(char))
sprintf(s, "%p", p)
return s
----
Regards,
Koshy
<jkoshy at freebsd.org>