1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #if !defined(lint) && !defined(NOSCCS)
   8: static char sccsid[] = "@(#)delch.c	5.1 (Berkeley) 6/7/85";
   9: #endif
  10: 
  11: # include   "curses.ext"
  12: 
  13: /*
  14:  *	This routine performs an insert-char on the line, leaving
  15:  * (_cury,_curx) unchanged.
  16:  *
  17:  */
  18: wdelch(win)
  19: reg WINDOW  *win; {
  20: 
  21:     reg char    *temp1, *temp2;
  22:     reg char    *end;
  23:     reg int     lch;
  24: 
  25:     end = &win->_y[win->_cury][win->_maxx - 1];
  26:     temp1 = &win->_y[win->_cury][win->_curx];
  27:     temp2 = temp1 + 1;
  28:     while (temp1 < end)
  29:         *temp1++ = *temp2++;
  30:     *temp1 = ' ';
  31:     touchline(win, win->_cury, win->_curx, win->_maxx - 1);
  32:     return OK;
  33: }

Defined functions

Defined variables

sccsid defined in line 8; never used
Last modified: 1987-07-26
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2237
Valid CSS Valid XHTML 1.0 Strict