Yuan Mang wrote: > also if I tried to use: > cdef FILE a > or > cdef FILE *a > it reported Syntax error in C variable declaration You have to declare it: cdef extern from "stdio.h": ctypedef struct FILE Stefan