I have the following code and need to convert the array into character string and print the value later as opposed to printing it via loop:
int main( void )
{
int i;
unsigned char buf[16]; // assume buf is populated by a function.
char p[33];
for( i = 0; i < 16; i++ )
printf( "%02x", digest[i] );
return( 0 );
}
how can I place the characters from buf into p?
Thanks in advance.