source: buchla-68k/vlib/vclrs.c@ 7258c6a

Last change on this file since 7258c6a was 7258c6a, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Use standard integer types.

  • Property mode set to 100644
File size: 1.0 KB
Line 
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
18extern void vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib);
19
20/*
21 =============================================================================
22 vclrs(obase, row, col, nc, ch, atr) -- clear a line on the VSDD
23 =============================================================================
24*/
25
26void vclrs(uint16_t obase[], int16_t row, int16_t col, int16_t nc, int16_t ch, int16_t atr)
27{
28 while (nc--)
29 vputc(obase, row, col++, ch, atr);
30}
Note: See TracBrowser for help on using the repository browser.