xref: /original-bsd/usr.bin/window/wwputs.c (revision a95f03a8)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * 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	3.8 (Berkeley) 06/06/90";
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