[109c83b] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | vclrs.c -- clear a VSDD text line to a specified value
|
---|
| 4 | Version 2 -- 1987-04-15 -- D.N. Lynx Crowe
|
---|
| 5 | (c) Copyright 1987 -- D.N. Lynx Crowe
|
---|
| 6 |
|
---|
| 7 | vclrs(obase, row, col, nc, ch, atr)
|
---|
| 8 | unsigned int obase[];
|
---|
| 9 | int row, col, nc, ch, atr;
|
---|
| 10 |
|
---|
| 11 | Clear 'nc' characters in the text object 'obase' to 'ch',
|
---|
| 12 | using atrributes 'atr', starting at ('row','col');
|
---|
| 13 |
|
---|
| 14 | No error checking is done, so beware.
|
---|
| 15 | =============================================================================
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | extern int vputc();
|
---|
| 19 |
|
---|
| 20 | /*
|
---|
| 21 | =============================================================================
|
---|
| 22 | vclrs(obase, row, col, nc, ch, atr) -- clear a line on the VSDD
|
---|
| 23 | =============================================================================
|
---|
| 24 | */
|
---|
| 25 |
|
---|
| 26 | vclrs(obase, row, col, nc, ch, atr)
|
---|
| 27 | register unsigned int obase[];
|
---|
| 28 | int row, col;
|
---|
| 29 | register int nc;
|
---|
| 30 | int ch, atr;
|
---|
| 31 | {
|
---|
| 32 | while (nc--)
|
---|
| 33 | vputc(obase, row, col++, ch, atr);
|
---|
| 34 | }
|
---|