39 return (
char)(h<10?
'0'+h:
'a'+(h & 0x0f));
char * NewPrettyBuf(byte_t buf[], size_t len)
Allocates a string buffer and copies a 'prettified' readable version of the contents of the given (bi...
#define C_DECLS_BEGIN
C declaration block begin in C.
int PrettyPrintBuf(FILE *fp, byte_t buf[], size_t len)
Print out 'prettified' readable version of the contents of the given (binary) buffer.
#define C_DECLS_END
C declaration block end in C.
static char hexnibbletoa(int h)
Convert hex nibble to ascii equivalent.