lsflib/src/hexdump.c
changeset 6 c3dc3eb3b541
child 9 c3fecc82ade6
equal deleted inserted replaced
5:d752cbe8208e 6:c3dc3eb3b541
       
     1 /*
       
     2  *  $Id: hexdump.c 94 2008-04-05 01:27:30Z mbroeker $
       
     3  * $URL: http://localhost/svn/c/lsflib/trunk/src/hexdump.c $
       
     4  *
       
     5  */
       
     6 
       
     7 #include <stdio.h>
       
     8 
       
     9 void hexdump (char *s, int len)
       
    10 {
       
    11     int i;
       
    12 
       
    13     for (i = 0; i < len; i++) {
       
    14         printf ("%02X ", s[i]);
       
    15         if ((i % 40) == 0)
       
    16             printf ("\n");
       
    17     }
       
    18 }