home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gmp202.zip / mpn / generic / dump.c < prev    next >
C/C++ Source or Header  |  1996-05-08  |  297b  |  21 lines

  1. #include <stdio.h>
  2. #include "gmp.h"
  3. #include "gmp-impl.h"
  4.  
  5. void
  6. mpn_dump (ptr, size)
  7.      mp_srcptr ptr;
  8.      mp_size_t size;
  9. {
  10.   if (size == 0)
  11.     printf ("0\n");
  12.   {
  13.     while (size)
  14.       {
  15.     size--;
  16.     printf ("%0*lX", (int) (2 * BYTES_PER_MP_LIMB), ptr[size]);
  17.       }
  18.     printf ("\n");
  19.   }
  20. }
  21.