nebu_file_io.h

来自「小游戏 linux very happy」· C头文件 代码 · 共 21 行

H
21
字号
#ifndef NEBU_FILE_IO_H#define NEBU_FILE_IO_H/* this is a small wrapper around the basic file io functions,   ie open, close, read, gets */#ifdef FILE_IO_ZLIB#include <zlib.h>typedef gzFile file_handle;#else#include <stdio.h>typedef FILE* file_handle;#endiffile_handle file_open(const char *path, const char *mode);int file_close(file_handle file);int file_read(file_handle file, void* data, unsigned int size);char* file_gets(file_handle file, char* data, unsigned int size);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?