Trusted Solaris Developer's Guide

Binary and Hexadecimal Translation

These routines translate a clearance from binary to hexadecimal and back again. Refer to the btohex(3TSOL) man page.

char  *h_alloc(const unsigned char id);
void  h_free(char *hex);

char  *bcleartoh_r(const bclear_t *clearance, char *hex);
char  *bcleartoh(const bclear_t *clearance);
int   htobclear(const char *s, bclear_t *clearance);