File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / rectclip.3r
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.ds ZZ DEVELOPMENT PACKAGE
.TH RECTCLIP 3R "630 MTG"
.XE "rectclip()"
.SH NAME
rectclip \- clip a Rectangle to another Rectangle
.SH SYNOPSIS
\f3
#include <dmd.h>
.sp
int rectclip (rp, s)
.br
Rectangle \(**rp, s;\f1
.SH DESCRIPTION
The
.I rectclip
function
clips the Rectangle pointed to by
.I rp
so that it is completely contained within the Rectangle
.IR s .
The return value is 1 if any part of
.I *rp
is within \f2s\f1.
Otherwise, the return value is 0 and
.I *rp
is unchanged.
.SH EXAMPLE
See the example for
.IR newrect (3R).
.SH SEE ALSO
newrect(3R).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.