date and time created 83/08/09 18:37:52 by edward
[unix-history] / usr / src / usr.bin / window / wwprintf.c
index dd0a130..ced540e 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)wwprintf.c  1.2 83/07/18";
+static char *sccsid = "@(#)wwprintf.c  2.1.1.1 83/08/09";
 #endif
 
 #include "ww.h"
 
 #endif
 
 #include "ww.h"
 
+/*VARARGS2*/
 wwprintf(w, fmt, args)
 struct ww *w;
 char *fmt;
 wwprintf(w, fmt, args)
 struct ww *w;
 char *fmt;
@@ -23,35 +24,3 @@ char *fmt;
        _doprnt(fmt, &args, &_wwbuf);
        return wwwrite(w, buf, _wwbuf._ptr - buf);
 }
        _doprnt(fmt, &args, &_wwbuf);
        return wwwrite(w, buf, _wwbuf._ptr - buf);
 }
-
-#ifdef notdef
-wwprintf(w, fmt, args)
-struct ww *w;
-char *fmt;
-{
-       _doprnt(fmt, &args, w);
-       return 0;
-}
-
-_strout(count, string, adjust, file, fillch)
-register char *string;
-register count;
-int adjust;
-register struct ww *file;
-{
-       while (adjust < 0) {
-               if (*string=='-' && fillch=='0') {
-                       wputc(*string++, file);
-                       count--;
-               }
-               wputc(fillch, file);
-               adjust++;
-       }
-       while (--count>=0)
-               wputc(*string++, file);
-       while (adjust) {
-               wputc(fillch, file);
-               adjust--;
-       }
-}
-#endif