# YCORNERFROMSRECT

Calculates the opposite corner Y location for an SRect.

### Synopsis

`CCB * YCORNERFROMSRECT (SRect *rect)`

### Description

This macro evaluates to the Y location for the corner opposite to the corner described by rect->pos.

This macro evaluates its argument more than once; be careful of side effects. It is usable in expression context.

### Arguments

rect
  Pointer to an SRect.

### Return Value

The Y location of the opposite corner.

### Implementation

Macro

### Associated Files

lib3do.lib, celutils.h

### See Also

`ICornerFromSRect``, XCORNERFROMSRECT`