On Jul 30, 2007, at 9:42 AM, Martin Crane wrote: So, to demonstrate, in the code I have (example, not real!):
static unsigned char gBuffer1[8] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'}; unsigned char gBuffer2[8] = { 'h', 'g', 'f', 'e', 'd', 'c', 'b', 'a'};
and the external app expects to see "abcdefghhgfedcba" in the data area of the binary.
This isn't a perfect solution (obviously this won't work if you do things like sizeof(g)), but could you do something like:
unsigned char gBuffer1[16] = {'a','b','c','d','e','f','g','h', 'h','g','f','e','d','c','b','a' }; unsigned char *gBuffer2 = gBuffer1 + 8;
|