diff src/libstrfunc.c @ 151:cda7c812ec01

track character set individually for each mapi element
author Carl Byington <carl@five-ten-sg.com>
date Sun, 08 Mar 2009 14:35:26 -0700
parents fc11b1d1ad34
children 6954d315aaa8
line wrap: on
line diff
--- a/src/libstrfunc.c	Thu Mar 05 08:23:32 2009 -0800
+++ b/src/libstrfunc.c	Sun Mar 08 14:35:26 2009 -0700
@@ -63,29 +63,3 @@
 };
 
 
-void hexdump(char *hbuf, int start, int stop, int ascii) /* {{{ HexDump all or a part of some buffer */
-{
-    char c;
-    int diff,i;
-
-    while (start < stop ) {
-        diff = stop - start;
-        if (diff > 16) diff = 16;
-
-        fprintf(stderr, ":%08X  ",start);
-
-        for (i = 0; i < diff; i++) {
-            if( 8 == i ) fprintf( stderr, " " );
-            fprintf(stderr, "%02X ",(unsigned char)*(hbuf+start+i));
-        }
-        if (ascii) {
-            for (i = diff; i < 16; i++) fprintf(stderr, "   ");
-            for (i = 0; i < diff; i++) {
-                c = *(hbuf+start+i);
-                fprintf(stderr, "%c", isprint(c) ? c : '.');
-            }
-        }
-        fprintf(stderr, "\n");
-        start += 16;
-    }
-}