4.4BSD/usr/src/contrib/nvi/nvi/PORT/clib/Xaddnstr.c

Compare this file to the similar file:
Show the results in this format:

#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);
}