xref: /original-bsd/usr.bin/window/wwputs.c (revision 4f00418d)
1 /*
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Edward Wang at The University of California, Berkeley.
7  *
8  * %sccs.include.redist.c%
9  */
10 
11 #ifndef lint
12 static char sccsid[] = "@(#)wwputs.c	8.1 (Berkeley) 06/06/93";
13 #endif /* not lint */
14 
15 #include "ww.h"
16 
17 wwputs(s, w)
18 register char *s;
19 struct ww *w;
20 {
21 	register char *p = s;
22 
23 	while (*p++)
24 		;
25 	(void) wwwrite(w, s, p - s - 1);
26 }
27