|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T f
Length: 584 (0x248)
Types: TextFile
Names: »floatfi.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPFIX/floatfi.c«
extern int xflg, wflg, mflg;
/*
n = ptr to name
vp= ptr to current value
wv= default value
*/
floatfi(n, vp, wv)
char *n;
float *vp, wv;
{
char *cp, *getstri();
double atof();
if( xflg ) return;
if( wflg ) {
*vp = wv;
return;
}
printf(" %5s %.2f ", n, *vp);
cp = getstri("");
if( *cp == 'x' ) {
xflg++;
return;
}
if( *cp == '\0' ) return;
*vp = atof(cp);
mflg++;
return;
}