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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat184.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6.  
  7. void main()
  8. {
  9.    char *ptr = "32000", *endptr;
  10.    long number;
  11.    int base;
  12.  
  13.    for(base=2;base<=36;base++)
  14.    {
  15.        number = strtol(ptr, &endptr, base);
  16.        printf("ªrªΩ \"%s\" ÑH %2d ¼░░≥⌐│┬α┤½ª¿¬°╛π╝╞½ßñº¡╚¼░ %ld\n",
  17.                ptr, base, number);
  18.    }
  19. }
  20.