projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 83/08/09 18:37:52 by edward
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
wwputs.c
diff --git
a/usr/src/usr.bin/window/wwputs.c
b/usr/src/usr.bin/window/wwputs.c
index
151e9ed
..
3b1ace6
100644
(file)
--- a/
usr/src/usr.bin/window/wwputs.c
+++ b/
usr/src/usr.bin/window/wwputs.c
@@
-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);
}
}