IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2012, 9:46:37 AM (14 years ago)
Author:
eugene
Message:

add getcoords function; avoid truncation problems with large 32bit ints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120805/Ohana/src/opihi/cmd.basic/fprintf.c

    r29540 r34339  
    4545      case 'F':
    4646      case 'G':
    47         sprintf (tmp, fmt, atof(argv[i]));
     47        sprintf (tmp, fmt, strtod (argv[i], NULL));
    4848        break;
    4949      case 's':
     
    5757      case 'x':
    5858      case 'X':
    59         sprintf (tmp, fmt, atoi(argv[i]));
     59        sprintf (tmp, fmt, strtol(argv[i], NULL, 0));
    6060        break;
    6161      default:
Note: See TracChangeset for help on using the changeset viewer.