add getline impl

This commit is contained in:
Nishi 2026-01-12 05:12:54 +09:00
commit 1da71680f7
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 64 additions and 3 deletions

View file

@ -8,12 +8,16 @@
extern "C" {
#endif
/* file.c */
GSDECL GSFile GSFileOpen(GSEngine engine, const char* path);
GSDECL int GSFileRead(GSFile file, void* out, int size);
GSDECL void GSFileSeek(GSFile file, int pos);
GSDECL unsigned int GSFileSize(GSFile file);
GSDECL void GSFileClose(GSFile file);
/* getline.c */
GSDECL int GSFileGetLine(char** lineptr, int* n, FILE* fp);
#ifdef __cplusplus
}
#endif