BSD 4_4 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Wed, 9 Jun 1993 15:01:19 +0000 (07:01 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Wed, 9 Jun 1993 15:01:19 +0000 (07:01 -0800)
Work on file usr/src/contrib/nvi/nvi/PORT/clib/Xaddnstr.c

Synthesized-from: CSRG/cd3/4.4

usr/src/contrib/nvi/nvi/PORT/clib/Xaddnstr.c [new file with mode: 0644]

diff --git a/usr/src/contrib/nvi/nvi/PORT/clib/Xaddnstr.c b/usr/src/contrib/nvi/nvi/PORT/clib/Xaddnstr.c
new file mode 100644 (file)
index 0000000..9d27028
--- /dev/null
@@ -0,0 +1,15 @@
+#include <sys/cdefs.h>
+
+#include <curses.h>
+
+int
+addnstr(s, n)
+       const char *s;
+       int n;
+{
+       int ch;
+
+       while (n-- && (ch = *s++))
+               addch(ch);
+       return (OK);
+}