⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xfile.h

📁 c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及时下载!
💻 H
字号:
/* +++Date last modified: 05-Jul-1997 */

/*
**  xfile.h -- definitions for fast line buffered files
*/

#ifndef __XFILE_H__
#define __XFILE_H__

struct _xfile {
    int   fd;
    int   bufSize;
    char *buf;
    char *nextChar;
    char *lastChar;
};

typedef struct _xfile XFILE;

#include <dos.h>

#if defined(__ZTC__)
 #include <io.h>
 #define DOS_OPEN dos_open
 #define READ     read
 #define CLOSE    close
#elif defined(__TURBOC__)
 #include <io.h>
 #include <fcntl.h>
 #define DOS_OPEN _open
 #define READ     _read
 #define CLOSE    _close
#else /* MSC */
 #include <stdlib.h>
 #include <fcntl.h>
 #define CLOSE    _dos_close
#endif

XFILE *xopen(char const *);
void   xclose(XFILE *);
char  *xgetline(XFILE *);

#endif  /* __XFILE_H__ */

⌨️ 快捷键说明

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