7 * Print arbitrary stuff, for debugging.
12 #ifndef NO_USERINTERFACE
16 lber_bprint( char *data, int len )
18 static char hexdig[] = "0123456789abcdef";
22 memset( out, 0, BPLEN );
25 fprintf( stderr, "\t%s\n", ( i == 0 ) ? "(end)" : out );
30 if ( isgraph( (unsigned char)*data )) {
35 out[ i ] = hexdig[ ( *data & 0xf0 ) >> 4 ];
36 out[ i+1 ] = hexdig[ *data & 0x0f ];
44 if ( i > BPLEN - 2 ) {
45 fprintf( stderr, "\t%s\n", out );
46 memset( out, 0, BPLEN );
53 #else /* NO_USERINTERFACE */
55 lber_bprint( char *data, int len )
58 #endif /* NO_USERINTERFACE */