>how to access and dereference a VOID pointer?
Just cast it into the correct data type and dereference it:
-PreludeCode:#include <stdio.h> int main ( void ) { void *vptr; int a = 5; int b; vptr = &a; printf("vprt is %d\n", *(int *)vptr); b = *(int *)vptr; *(int *)vptr = 10; printf("b is %d\n", b); printf("vprt is %d\n", *(int *)vptr); return 0; }