Add waddstr() macro replacement.

This commit is contained in:
jdc 2000-04-15 23:36:55 +00:00
parent 4af6ba0397
commit 768717750f
1 changed files with 12 additions and 2 deletions

View File

@ -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 */
@ -71,6 +71,16 @@ addnstr(const char *str, int n)
return waddnstr(stdscr, str, n);
}
/*
* 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)