From 28ca28a57902fe74c7807cc9093f3f2e7d00596f Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 30 Aug 1999 07:58:08 +0000 Subject: Use src/contrib/ncurses, v5.0.990821 prerelease. This isn't quite finished yet, there are still some unresolved problems with ospeed and the sgtty.h (non-posix) terminal interface. Mostly this only causes problems with src/games. The other tools and libraries (libform,libpanel,libmenu) will come shortly but are seperate. Beware, there be dragons here! (The build will be broken for a short while) --- lib/libncurses/lib_addstr.c | 56 --------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 lib/libncurses/lib_addstr.c (limited to 'lib/libncurses/lib_addstr.c') diff --git a/lib/libncurses/lib_addstr.c b/lib/libncurses/lib_addstr.c deleted file mode 100644 index d9cb30a..0000000 --- a/lib/libncurses/lib_addstr.c +++ /dev/null @@ -1,56 +0,0 @@ - -/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for * -* details. If they are missing then this copy is in violation of * -* the copyright conditions. */ - -/* -** lib_addstr.c -* -** The routines waddnstr(), waddchnstr(). -** -*/ - -#include "curses.priv.h" - -int -waddnstr(WINDOW *win, char *str, int n) -{ - T(("waddnstr(%x,\"%s\",%d) called", win, visbuf(str), n)); - - if (str == NULL) - return ERR; - - if (n < 0) { - while (*str != '\0') { - if (waddch(win, (chtype)(unsigned char)*str++) == ERR) - return(ERR); - } - return OK; - } - - while((n-- > 0) && (*str != '\0')) { - if (waddch(win, (chtype)(unsigned char)*str++) == ERR) - return ERR; - } - return OK; -} - -int -waddchnstr(WINDOW *win, chtype *str, int n) -{ - T(("waddchnstr(%x,%x,%d) called", win, str, n)); - - if (n < 0) { - while (*str) { - if (waddch(win, (chtype)(unsigned char)*str++) == ERR) - return(ERR); - } - return OK; - } - - while(n-- > 0) { - if (waddch(win, (chtype)(unsigned char)*str++) == ERR) - return ERR; - } - return OK; -} -- cgit v1.1