unistd.h

来自「国外网站上的一些精典的C程序」· C头文件 代码 · 共 38 行

H
38
字号
/***  UNISTD.H - Posix-compliant header for porting code to DOS**             systems which lack this standard header file.****  public domain by Bob Stout*/#ifndef __UNISTD_H      /* Use same macro as Symantec to avoid collision */#define __UNISTD_H#include <io.h>#include <process.h>#include <stdio.h>#include "stat.h"#ifndef F_OK #define F_OK    0      /* File exists          */ #define X_OK    1      /* File is executable   */ #define W_OK    2      /* File is writable     */ #define R_OK    4      /* File is readable     */#endif#undef dirent#undef DIR#if !defined(__TURBOC__) #include <direct.h>#else #include <dir.h>#endif#define dirent DIRENT_#define DIR DIR_#endif /* __UNISTD_H */

⌨️ 快捷键说明

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