date and time created 83/08/09 18:37:52 by edward
[unix-history] / usr / src / usr.bin / window / wwputs.c
index 151e9ed..3b1ace6 100644 (file)
@@ -1,13 +1,16 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)wwputs.c    1.1 83/07/12";
+static char *sccsid = "@(#)wwputs.c    2.1.1.1 83/08/09";
 #endif
 
 #include "ww.h"
 
 wwputs(s, w)
 #endif
 
 #include "ww.h"
 
 wwputs(s, w)
-       register char *s;
-       register struct ww *w;
+register char *s;
+struct ww *w;
 {
 {
-       while (*s)
-               wwputc(*s++, w);
+       register char *p = s;
+
+       while (*p++)
+               ;
+       return wwwrite(w, s, p - s - 1);
 }
 }