In C you cannot assign arrays. You have to copy the memory explicitly.
Probably you want to do this:
memcpy(buf, measurements, sizeof(measurements));
But you gave no details about what you actually want to do.
PS: Your fscanf()
is wrong. It should take the address of the variable that will hold the read value.
And if you use uint32_t
you should use the SCNu32
specification, from <inttypes.h>
, to be sure that you do not break things:
fscanf(fp,"%"SCNu32, &InterruptLatency);