Consider the following piece of code:
#include \"stdio.h\"
typedef struct CustomStruct
{
short Element1[10];
}CustomStruct;
void F2(char* Y)
{
*Y=0x00;
If F2()
is receiving a char *
, then it must be doing something pretty strange in order to cause endian-related problems.
These only happen when accessing more than one char
at a time, unless it's manually doing such accesses while being broken. Is it casting it's argument back to short *
or something?
In short, show more code.