2 * Copyright (c) 2001 by Sun Microsystems, Inc.
6 #pragma ident "%Z%%M% %I% %E% SMI"
12 static char hexdig
[] = "0123456789abcdef";
14 char* hexa_print(char *aString
, int aLen
)
19 if ((res
= (char *)calloc (aLen
*2 + 1, 1 )) == NULL
){
25 res
[i
] = hexdig
[ ( *aString
& 0xf0 ) >> 4 ];
26 res
[i
+ 1] = hexdig
[ *aString
& 0x0f ];