Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Add waddstr() macro replacement.



details:   https://anonhg.NetBSD.org/src/rev/5a5c22905e28
branches:  trunk
changeset: 484968:5a5c22905e28
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sat Apr 15 23:36:55 2000 +0000

description:
Add waddstr() macro replacement.

diffstat:

 lib/libcurses/addnstr.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 8903770571ea -r 5a5c22905e28 lib/libcurses/addnstr.c
--- a/lib/libcurses/addnstr.c   Sat Apr 15 23:01:47 2000 +0000
+++ b/lib/libcurses/addnstr.c   Sat Apr 15 23:36:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: addnstr.c,v 1.7 2000/04/15 13:17:02 blymn Exp $        */
+/*     $NetBSD: addnstr.c,v 1.8 2000/04/15 23:36:55 jdc Exp $  */
 
 /*
  * Copyright (c) 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)addnstr.c  8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: addnstr.c,v 1.7 2000/04/15 13:17:02 blymn Exp $");
+__RCSID("$NetBSD: addnstr.c,v 1.8 2000/04/15 23:36:55 jdc Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -72,6 +72,16 @@
 }
 
 /*
+ * mvwaddstr --
+ *      Add a string to the given window.
+ */
+int
+waddstr(WINDOW *win, const char *str)
+{
+       return waddnstr(win, str, -1);
+}
+
+/*
  * mvaddstr --
  *      Add a string to stdscr starting at (y, x)
  */



Home | Main Index | Thread Index | Old Index