#include <stdio.h>
struct point {
int x;
int y;
};
struct point get_point(void *point_array, int index) {
struct point s;
s = ((struct point *)point_array)[index];
return s;
}
int main() {
struct point a[] = { {0, 1}, {1, 2}, {2, 3}, {3, 4}, {4, 5} }, s;
s = get_point(a, 3);
printf("%d, %d\n", s.x, s.y);
return 0;
}
/* end */