Gurleen Kaur
Gurleen Kaur

Reputation: 41

Declaring FILE pointers in Cython

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

Answers (1)

Czarek Tomczak
Czarek Tomczak

Reputation: 20675

from libc.stdio cimport FILE

Definitions here: https://github.com/cython/cython/blob/master/Cython/Includes/libc/stdio.pxd

Upvotes: 2

Related Questions