examples/info.c
/*
 * Auxiliary function to print an array of bytes on stdout.
 */
Auxiliary function to print an array of bytes on stdout.
Auxiliary function to print an array of bytes on stdout .
static void
print_byte_array(const char *label, const uint8_t *ba, size_t len)
{
	if (len == 0)
		return;
	printf("%s: ", label);
	for (size_t i = 0; i < len; i++)
		printf("%s%u", i > 0 ? ", " : "", (unsigned)ba[i]);
	printf("\n");
}
static void print_byte_array ( const char * label , const uint8_t * ba , size_t len ) { if ( len == 0 ) return ; printf ( " " , label ) ; for ( size_t i = 0 ; i < len ; i ++ ) printf ( " " , i > 0 ? " " : " " , ( unsigned ) ba [ i ] ) ; printf ( " \n " ) ; }
Auxiliary function to print an array of bytes on stdout.
Auxiliary function to print an array of bytes on stdout .