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

📄 tputgetc.c

📁 su 的源代码库
💻 C
字号:
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"sftest.h"MAIN(){	Sfio_t	*f;	int	i, c;	if(!(f = sftmp(8)))		terror("Can't open temp file\n");	for(i = 0; i < 10000; ++i)		if(sfputc(f,(i%26)+'a') < 0)			terror("Writing %c\n",(i%26)+'a');	sfseek(f,(Sfoff_t)0,0);	for(i = 0; i < 10000; ++i)		if((c = sfgetc(f)) != ((i%26)+'a'))			terror("Input=%#o, Expect=%c\n",c,(i%26)+'a');	TSTEXIT(0);}

⌨️ 快捷键说明

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