typedef struct { float width; float length; }Rect; int InsideRect(Rect* r1, Rect* r2) { if(r1->width > r2->width && r1->length > r2->length) return 1; if(r1->width > r2->length && r1->length > r2->width) return 1; return 0; }