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

📄 ttmpfile.c

📁 su 的源代码库
💻 C
字号:
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"sftest.h"MAIN(){	Sfio_t*	f;	if(!(f = sftmp(1025)))		terror("Can't open temp file\n");	if(sffileno(f) >= 0)		terror("Attempt to create file detected\n");	if(sfputc(f,0) < 0)		terror("Can't write to temp file\n");	if(sffileno(f) >= 0)		terror("Attempt to create file detected\n");	if(sfclose(f) < 0)		terror("Can't close temp file\n");	if(sffileno(f) >= 0)		terror("Attempt to create file detected\n");	if(!(f = sftmp(8)))		terror("Can't open temp file\n");	if(sffileno(f) >= 0)		terror("Attempt to create file detected\n");	sfdisc(f,NIL(Sfdisc_t*));	if(sffileno(f) < 0)		terror("Real file wasn't created\n");	if(sfclose(f) < 0)		terror("Can't close temp file\n");	if(!(f = sftmp(8)))		terror("Can't open temp file\n");	if(sffileno(f) >= 0)		terror("Attempt to create file detected\n");	if(sfseek(f, (Sfoff_t)8, SEEK_SET) < 0)		terror("Can't seek on temp file\n");	if(sffileno(f) >= 0)		terror("Attempt to create file detected\n");	if(sfputc(f,0) < 0)		terror("Can't write to temp file\n");	if(sffileno(f) < 0)		terror("Real file wasn't created\n");	if(sfclose(f) < 0)		terror("Can't close temp file\n");	TSTEXIT(0);}

⌨️ 快捷键说明

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