can't put %M% in a comment either
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 4 Apr 1994 22:28:13 +0000 (14:28 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 4 Apr 1994 22:28:13 +0000 (14:28 -0800)
SCCS-vsn: usr.bin/w/w.c 8.3

usr/src/usr.bin/w/w.c

index 693dbe9..11ce486 100644 (file)
@@ -12,7 +12,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)w.c        8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)w.c        8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -307,10 +307,11 @@ pr_header(nowp, nusers)
        /*
         * Print time of day.
         *
        /*
         * Print time of day.
         *
-        * Note, SCCS forces the string manipulation below, as it
-        * replaces w.c with file information.
+        * SCCS forces the string manipulation below, as it replaces
+        * %, M, and % in a character string with the file name.
         */
         */
-       (void)strftime(buf,sizeof(buf),__CONCAT("%l:%","M%p"),localtime(nowp));
+       (void)strftime(buf, sizeof(buf),
+           __CONCAT("%l:%","M%p"), localtime(nowp));
        (void)printf("%s ", buf);
 
        /*
        (void)printf("%s ", buf);
 
        /*