head 1.2; access; symbols SFIO_1999:1.1.1.1 SFIO_1998:1.1.1.1 SFIO_1997:1.1.1.1 ATT:1.1.1; locks; strict; comment @ * @; 1.2 date 99.09.11.12.42.11; author rse; state Exp; branches; next 1.1; 1.1 date 96.12.13.20.53.15; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.12.13.20.53.15; author rse; state Exp; branches; next ; desc @@ 1.2 log @Incorporate stuff from RSE's Sfio98 variant @ text @#include "sftest.h" #if _typ_long_double #include int main() { 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); return 0; } #else int main() { return 0;} #endif @ 1.1 log @Initial revision @ text @d6 1 a6 1 main() d29 1 a29 1 main() { return 0;} @ 1.1.1.1 log @Import of Sfio1997 @ text @@