comparison subopt-helper.c @ 16725:2a7220c457a7

1l, strtof is only C99, strtod is ANSI C, so use that instead.
author reimar
date Tue, 11 Oct 2005 08:50:32 +0000
parents f73adf296f1e
children 2ec2301183cd
comparison
equal deleted inserted replaced
16724:dcdc85f69287 16725:2a7220c457a7
256 { 256 {
257 char * endp; 257 char * endp;
258 258
259 assert( str && "parse_float(): str == NULL" ); 259 assert( str && "parse_float(): str == NULL" );
260 260
261 *valp = strtof( str, &endp ); 261 *valp = strtod( str, &endp );
262 262
263 /* nothing was converted */ 263 /* nothing was converted */
264 if ( str == endp ) { return NULL; } 264 if ( str == endp ) { return NULL; }
265 265
266 return endp; 266 return endp;