Files
metabuilder/typthon/Include/cpython/fileutils.h
johndoe6345789 0e707caa56 feat: Add Typthon
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 17:10:58 +00:00

17 lines
386 B
C

#ifndef Ty_CPYTHON_FILEUTILS_H
# error "this header file must not be included directly"
#endif
PyAPI_FUNC(FILE*) Ty_fopen(
TyObject *path,
const char *mode);
// Deprecated alias kept for backward compatibility
Ty_DEPRECATED(3.14) static inline FILE*
_Ty_fopen_obj(TyObject *path, const char *mode)
{
return Ty_fopen(path, mode);
}
PyAPI_FUNC(int) Ty_fclose(FILE *file);