Debian Codegraph @

Include/cpython/fileutils.h

raw
1 #ifndef Py_CPYTHON_FILEUTILS_H
2 # error "this header file must not be included directly"
3 #endif
4
5 PyAPI_FUNC(FILE*) Py_fopen(
6 PyObject *path,
7 const char *mode);
8
9 // Deprecated alias kept for backward compatibility
10 Py_DEPRECATED(3.14) static inline FILE*
11 _Py_fopen_obj(PyObject *path, const char *mode)
12 {
13 return Py_fopen(path, mode);
14 }
15
16 PyAPI_FUNC(int) Py_fclose(FILE *file);