# RectSetRight

void RectSetRight (Rect *rect, int right);

## Purpose

Sets the width of a Rect structure so that the right edge of the rectangle it defines is at the specified location.

The right edge of the rectangle is not enclosed by the rectangle and is equal to the left edge plus the width.

## Parameters

Input
Name | Type | Description
right | integer | X-coordinate of the new right edge.
Output
Name | Type | Description
rect | Rect | On input, the size and location of a rectangle. On output, the same rectangle except with a different right edge.

## Return Value

None.