home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT199.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-19  |  516 b   |  21 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat199.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6.  
  7. void list_value(unsigned int value)
  8. {
  9.   int mybase;
  10.   char buf[8*sizeof(int)+1];
  11.   for(mybase = 2; mybase < 36; ++mybase)
  12.       printf("%s\n", utoa(value, buf, mybase));
  13. }
  14.  
  15. void main()
  16. {
  17.   unsigned int myvalue = 38;
  18.   list_value(myvalue);
  19. }
  20.  
  21.