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

📄 tstatus.c

📁 su 的源代码库
💻 C
字号:
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"sftest.h"MAIN(){	Sfio_t*	ip;	Sfio_t*	op;	int	n;	if(!(ip = sfopen((Sfio_t*)0, "/dev/null", "r")))		terror("/dev/null read open\n");	if(!(op = sfopen((Sfio_t*)0, tstfile(0), "w")))		terror("Write open\n");	n = (int)sfmove(ip, op, SF_UNBOUND, -1);	if(n)		terror("move count %d != 0\n", n);	if(!sfeof(ip))		terror("sfeof(ip) expected\n");	if(sfeof(op))		terror("sfeof(op) not expected\n");	if(sferror(ip))		terror("sferror(ip) not expected\n");	if(sferror(op))		terror("sferror(op) not expected\n");	if(sfclose(ip))		terror("sfclose(ip)\n");	if(sfclose(op))		terror("sfclose(op)\n");	TSTEXIT(0);}

⌨️ 快捷键说明

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