|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-09 21:13:16
|
On Thursday 09 June 2005 04:14 am, Robert Hart wrote: > > #ifdef USE_STRTOD > char *fin; > df_column[df_no_cols].datum=strtod(s,&fin); > used=s-fin; > count=used?1:0; > #else > count = sscanf(s, "%lf%n", &df_column[df_no_cols].datum, &used); > #endif Somewhat more complete patch attached, adding a TBOOLEAN to toggle fortran_float handling. I've run it through the usual test suite, but haven't yet tried deliberately to break it with oddball input data. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |