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

📄 crontab.h

📁 这是一个我自己仿照linux下cron程序写的精简版的cron
💻 H
字号:
#include <errno.h>#include <fcntl.h>#include <signal.h>#include <sys/file.h>#include <sys/stat.h>#include <time.h>#include <utime.h>#include <stdio.h>#include <pwd.h>#include <unistd.h>#include <string.h>#define ROOT_UID 0 #define OK	    0#define MAX_FNAME 100#define MAX_LINE 300#define SPOOL_DIR	getenv("HOME")#define	CRON_TAB(u)	"%s/%s", SPOOL_DIR, u#define NHEADER_LINES 3#define MAX_TEMPSTR 1000#define MAX_ENVSTR MAX_TEMPSTRenum opt_t	{ opt_unknown, opt_list, opt_delete, opt_edit, opt_replace };

⌨️ 快捷键说明

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