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

📄 unlink_.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*char id_unlink[] = "@(#)unlink_.c	1.2"; * * unlink (remove) a file * * calling sequence: *	integer unlink *	ierror = unlink(filename) * where: *	ierror will be a returned status (0 == OK) *	filename is the file to be unlinked */#include "../libI77/f_errno.h"#include <sys/param.h>#ifndef	MAXPATHLEN#define MAXPATHLEN	128#endiflongunlink_(fname, namlen)char *fname;long namlen;{	char buf[MAXPATHLEN];	if (namlen >= sizeof buf)		return((long)(errno=F_ERARG));	g_char(fname, namlen, buf);	if (unlink(buf) != 0)		return((long)errno);	return(0L);}

⌨️ 快捷键说明

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