c
C: Get reference to parent struct from within nested struct
That title sound a bit confusing so here an example: typedef struct { int x; int y; } point; typedef struct { int width; int height; point topLeft; } rectangle; Taking this example: If you got a pointer on a point-struct 'topleft' but don't know about the struct that contains