I'm trying to memset an array of ints that exist inside a structure:
typedef struct _xyz {
int zList[9000];
} xyz;
int dll_tmain(void)
{
xyz *Xyz = (xyz *) calloc(10, sizeof(xyz));
memset((&Xyz[0])->zList, 1, 9000);
}
I've tried a lot of variations in the memset(), to no avail. Instead of being initialized to 1, the number is some huge value;
16843009? (Telling us that would have been helpful.)