summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_inchstr.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-26 04:02:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-26 04:02:03 +0000
commitbda33b7e716d56bf1a9ecccb7e2543889f9ab1d3 (patch)
tree7bc4bcdf70ecc1d045693a309e96b304e1b49c33 /lib/libcurses/lib_inchstr.c
parentcd15e61d557c4704743905eae7b88ae927cf0394 (diff)
ncurses 4.1 + changes to work with our terminfo libs (instead of
the ncurses ones). Changes are #ifdef EXTERN_TERMINFO. Post 4.1 patches will be applied in a separate commit.
Diffstat (limited to 'lib/libcurses/lib_inchstr.c')
-rw-r--r--lib/libcurses/lib_inchstr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libcurses/lib_inchstr.c b/lib/libcurses/lib_inchstr.c
index 2dc64bff0d6..8ed9a8725cb 100644
--- a/lib/libcurses/lib_inchstr.c
+++ b/lib/libcurses/lib_inchstr.c
@@ -27,17 +27,19 @@
**
*/
-#include "curses.priv.h"
+#include <curses.priv.h>
+
+MODULE_ID("Id: lib_inchstr.c,v 1.5 1997/02/02 01:06:03 tom Exp $")
int winchnstr(WINDOW *win, chtype *str, int n)
{
int i;
- T(("winchnstr(%p,'%p',%d) called", win, str, n));
+ T((T_CALLED("winchnstr(%p,%p,%d)"), win, str, n));
for (i = 0; (n < 0 || (i < n)) && (win->_curx + i <= win->_maxx); i++)
str[i] = win->_line[win->_cury].text[win->_curx + i];
str[i] = (chtype)0;
- return(i);
+ returnCode(i);
}