This will do what is indicated in the question.
It assumes that integers are little-endian, where the least significant byte in the smallest address.
#include <stdio.h>
#include <stdint.h>
#include <memory.h>
int main()
{
int rCode = 0;
uint8_t id[]= {0xBB,0x50,0x60,0x9E,0x99};
uint32_t message[2];
char *cp;
int nCnt;
/* zero out message, because there are not enough id bytes to fill both. */
memset(message, 0, sizeof(message));
/* move bytes from id to message. */
cp = (char *)message;
for(nCnt = sizeof(id); nCnt; --nCnt)
*cp++ = id[nCnt-1];
printf("message[0] = 0x%08X\n", message[0]); // 0x50609E99
printf("message[1] = 0x%08X\n", message[1]); // 0x000000BB
return(rCode);
}
id
isn't specifically a hex array. It's an array of 8-bit unsigned ints; you've just written the ints in hex notation.