[BACK]Return to strtod.c CVS log [TXT][DIR] Up to [cvs.netbsd.org] / src / lib / libc / stdlib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/stdlib/Attic/strtod.c between version 1.10 and 1.11

version 1.10, 1993/12/21 18:59:11 version 1.11, 1993/12/21 19:24:09
Line 115  static char *rcsid = "$Id$";
Line 115  static char *rcsid = "$Id$";
 #ifndef KR_headers  #ifndef KR_headers
 #include "stdlib.h"  #include "stdlib.h"
 #include "string.h"  #include "string.h"
   #include "locale.h"
 #else  #else
 #include "malloc.h"  #include "malloc.h"
 #include "memory.h"  #include "memory.h"
Line 1194  strtod
Line 1195  strtod
         Long L;          Long L;
         unsigned Long y, z;          unsigned Long y, z;
         Bigint *bb, *bb1, *bd, *bd0, *bs, *delta;          Bigint *bb, *bb1, *bd, *bd0, *bs, *delta;
   
   #ifndef KR_headers
           CONST char decimal_point = localeconv()->decimal_point[0];
   #else
           CONST char decimal_point = '.';
   #endif
   
         sign = nz0 = nz = 0;          sign = nz0 = nz = 0;
         rv = 0.;          rv = 0.;
   
   
         for(s = s00; isspace(*s); s++)          for(s = s00; isspace(*s); s++)
                 ;                  ;
   
Line 1226  strtod
Line 1235  strtod
                 else if (nd < 16)                  else if (nd < 16)
                         z = 10*z + c - '0';                          z = 10*z + c - '0';
         nd0 = nd;          nd0 = nd;
         if (c == '.') {          if (c == decimal_point) {
                 c = *++s;                  c = *++s;
                 if (!nd) {                  if (!nd) {
                         for(; c == '0'; c = *++s)                          for(; c == '0'; c = *++s)

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVSweb <webmaster@jp.NetBSD.org>