Im a super newbie with c so this probably looks like crap but it works. I have a pointer array in memory that starts at Points_Array and steps through getting each record in memory. The first member in the structure is a jump address to the correct function that processes infomation in the structure.
It compiles with warning: assignment makes pointer from integer without a cast [-Wint-conversion]
I cant figure out how to type cast for the function below. Could someone show me how to do that.
Thanks.
Code:void (*pf)(uint8_t, uint8_t, uint32_t*); void processPoints(void) { uint8_t a = Pnt_Count; uint32_t *p; uint32_t *pa = Points_Array; while (a) { p = (uint32_t*) *pa; pf = *p; /* warning is for this line */ pf(PNT_PROCESS, a, p); --a; ++pa; } }