42 char *sPretty =
NEWSTR(len*4);
46 for(i=0, s=sPretty; i<len; ++i)
114 n = fprintf(fp,
"%s", sPretty);
#define NEWSTR(len)
Allocate new string buffer of length len+1.
Memory allocation and deallocation declarations.
Simple character manipulations.
int PrettyPrintBuf(FILE *fp, byte_t buf[], size_t len)
Print out 'prettified' readable version of the contents of the given (binary) buffer.
RoadNarrows Robotics common configuration file.
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...
static char hexnibbletoa(int h)
Convert hex nibble to ascii equivalent.