projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move entry/exit debugging to 21.1
[unix-history]
/
usr
/
src
/
lib
/
libcurses
/
delch.c
diff --git
a/usr/src/lib/libcurses/delch.c
b/usr/src/lib/libcurses/delch.c
index
576e92d
..
6ef38f5
100644
(file)
--- a/
usr/src/lib/libcurses/delch.c
+++ b/
usr/src/lib/libcurses/delch.c
@@
-1,15
+1,17
@@
/*
/*
- * Copyright (c) 1981
Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1981
, 1993, 1994
+ *
The Regents of the University of California.
All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
*
* %sccs.include.redist.c%
*/
#ifndef lint
-static char sccsid[] = "@(#)delch.c
5.11
(Berkeley) %G%";
+static char sccsid[] = "@(#)delch.c
8.2
(Berkeley) %G%";
#endif /* not lint */
#endif /* not lint */
-#include <curses.h>
+#include <string.h>
+
+#include "curses.h"
/*
* wdelch --
/*
* wdelch --
@@
-25,11
+27,11
@@
wdelch(win)
temp1 = &win->lines[win->cury]->line[win->curx];
temp2 = temp1 + 1;
while (temp1 < end) {
temp1 = &win->lines[win->cury]->line[win->curx];
temp2 = temp1 + 1;
while (temp1 < end) {
-
bcopy(temp2, temp1
, sizeof(__LDATA));
+
(void)memcpy(temp1, temp2
, sizeof(__LDATA));
temp1++, temp2++;
}
temp1->ch = ' ';
temp1->attr = 0;
__touchline(win, win->cury, win->curx, win->maxx - 1, 0);
temp1++, temp2++;
}
temp1->ch = ' ';
temp1->attr = 0;
__touchline(win, win->cury, win->curx, win->maxx - 1, 0);
- return (
CURSES_
OK);
+ return (OK);
}
}