home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
328_02
/
wsetc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
547b
|
34 lines
/* wsetc() - set all chars in window to a specified char
* starting at current position, going to end of window
*/
#include "wsys.h"
void wsetc( char c )
{
int x, y, l, t, r, b;
unsigned char a;
a = w0-> winattr;
l = w0-> winleft;
t = w0-> wintop;
x = w0-> winx + l;
r = w0-> winxmax + l;
y = w0-> winy + t;
b = w0-> winymax + t;
do
{
do
{
wputcabs ( x, y, c, a, WGOVERWRITE );
++x;
}
while ( x <= r );
x=l;
++y;
}
while ( y <= b );
return; /* wsetc */
}