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

📄 tlongdouble.c

📁 su 的源代码库
💻 C
字号:
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"sftest.h"#if _typ_long_double#include	<float.h>#endifMAIN(){#if _typ_long_double	long double	ldval, ldmax;	char		*s, *str;	ldmax = LDBL_MAX;	if(!(s = sfprints("%Le",ldmax)) )		terror("sfprints failed1\n");	if(!(str = malloc(strlen(s)+1)) )		terror("Malloc failed\n");	strcpy(str,s);	if(sfsscanf(str,"%Le",&ldval) != 1)		terror("sfsscanf failed\n");	if(!(s = sfprints("%Le",ldval)) )		terror("sfprints failed2\n");	if(strcmp(s,str) != 0)		terror("Bad conversion, expecting %s and getting %s\n",str,s);#endif	TSTEXIT(0);}

⌨️ 快捷键说明

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