home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT182.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-17  |  537 b   |  20 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat182.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6.  
  7. void main()
  8. {
  9.    char *ptr[] = {"+1233.99e-1","-INF","42.233","52e10","1C23"};
  10.    double result;
  11.    int i;
  12.  
  13.    for (i=0;i<5;i++)
  14.    {
  15.        result = strtod(ptr[i], NULL);
  16.        printf("ªrªΩ \"%11s\" ┬α┤½ª¿¡┐║δ╖╟╝╞½ß¼░: %lf\n",
  17.            ptr[i], result);
  18.    }
  19. }
  20.