treopen.c

来自「su 的源代码库」· C语言 代码 · 共 17 行

C
17
字号
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"stdtest.h"MAIN(){	FILE	*fp;	if(!(fp = freopen("/dev/null", "w", stdout)) )		terror("Can't reopen stdout\n");	if(fp != stdout)		terror("Didn't get the right file pointer\n");	TSTEXIT(0);}

⌨️ 快捷键说明

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