I have a function which expects a 8 bytes long unsigned char.
void f1(unsigned char *octets)
{
unsigned char i;
for (i=0;i<8;i++)
printf("(%d)",octets[i]);
}
This is how I use it while I have one 64bit integer:
unsigned long long ull = 1;
f1((unsigned char *) &ull);
(it uses the machine's native endianness.)
My question is, if instead of having 1x64bit integer, I have 2x32bit integers - is there a way to combine them efficiently as an input for this specific function?
unsigned long int low = 1;
unsigned long int high = 0;