mgxapp/lib/tools.c
/*
	Dump a hex representation of memory to the stderr device.
*/
Dump a hex representation of memory to the stderr device.
Dump a hex representation of memory to the stderr device .
extern void dump( const char* buf, int len ) {
	int i;
	fprintf( stderr, "Buffer at: %p\n", buf );
	for( i = 0; i < len; i++ ) {
		fprintf( stderr, "%02x ", (unsigned char) *(buf++) );
		if( i % 16 == 0 ) {
			fprintf( stderr, "\n" );
		}
	}
	fprintf( stderr, "\n" );
}
extern void dump ( const char * buf , int len ) { int i ; fprintf ( stderr , " \n " , buf ) ; for ( i = 0 ; i < len ; i ++ ) { fprintf ( stderr , " " , ( unsigned char ) * ( buf ++ ) ) ; if ( i % 16 == 0 ) { fprintf ( stderr , " \n " ) ; } } fprintf ( stderr , " \n " ) ; }
Dump a hex representation of memory to the stderr device.
Dump a hex representation of memory to the stderr device .