tmpfile.c

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

C
41
字号
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"sfstdio.h"/*	Creating a temporary stream.**	Written by Kiem-Phong Vo*/#if __STD_CFILE* tmpfile(void)#elseFILE* tmpfile()#endif{	reg Sfio_t*	sf;	reg FILE*	f;	if(!(sf = sftmp(0)))		f = NIL(FILE*);	else if(!(f = _stdstream(sf, NIL(FILE*))))		sfclose(sf);	else	sf->flags |= SF_MTSAFE;	return f;}#if _lib___tmpfile64 && !_done___tmpfile64 && !defined(tmpfile)#define _done___tmpfile64	1#define tmpfile			__tmpfile64#include			"tmpfile.c"#undef tmpfile#endif#if _lib_tmpfile64 && !_done_tmpfile64 && !defined(tmpfile)#define _done_tmpfile64	1#define tmpfile		tmpfile64#include		"tmpfile.c"#undef tmpfile#endif

⌨️ 快捷键说明

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