Reputation: 41
How do we declare file pointers in Cython? If I use the following:
cdef FILE* f
It shows the error "FILE is not a type identifier".
Please suggest any changes.
Upvotes: 4
Views: 552
Reputation: 20675
from libc.stdio cimport FILE
Definitions here: https://github.com/cython/cython/blob/master/Cython/Includes/libc/stdio.pxd
Upvotes: 2