updated comments from Chongo
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 3 Feb 1990 08:32:02 +0000 (00:32 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 3 Feb 1990 08:32:02 +0000 (00:32 -0800)
SCCS-vsn: games/factor/factor.c 4.3
SCCS-vsn: games/primes/primes.c 5.3

usr/src/games/factor/factor.c
usr/src/games/primes/primes.c

index 2dd1832..466899e 100644 (file)
@@ -25,7 +25,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)factor.c   4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)factor.c   4.3 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -38,13 +38,13 @@ static char sccsid[] = "@(#)factor.c        4.2 (Berkeley) %G%";
  * usage:
  *     factor [number] ...
  *
  * usage:
  *     factor [number] ...
  *
- * With no args, reads numbers from stdin and factors them.
- * With 1 or more args, factors such args.  Factors are printed
- * in assending order, with a leading tab, one per line.
+ * The form of the output is:
  *
  *
- * When more than one arg is supplied, the argument value, left
- * justified is printed before the set of factors.  This is not
- * one for reading values from input for historical reasons.
+ *     number: factor1 factor1 factor2 factor3 factor3 factor3 ...
+ *
+ * where factor1 < factor2 < factor3 < ...
+ *
+ * If no args are given, the list of numbers are read from stdin.
  */
 
 #include <stdio.h>
  */
 
 #include <stdio.h>
index af3e12c..e1f6031 100644 (file)
@@ -25,7 +25,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)primes.c   5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)primes.c   5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -38,14 +38,13 @@ static char sccsid[] = "@(#)primes.c        5.2 (Berkeley) %G%";
  * usage:
  *     primes [start [stop]]
  *
  * usage:
  *     primes [start [stop]]
  *
- *     Print primes >= start and <= stop.  If stop is omitted,
+ *     Print primes >= start and < stop.  If stop is omitted,
  *     the value 4294967295 (2^32-1) is assumed.  If start is
  *     omitted, start is read from standard input.
  *
  *     the value 4294967295 (2^32-1) is assumed.  If start is
  *     omitted, start is read from standard input.
  *
- *     Prints "ouch" if start or stop is > 4294967295 (2^32-1)
- *     or if a non-numeric is read on stdin.
+ *     Prints "ouch" if start or stop is bogus.
  *
  *
- * Validation check: there are 664579 primes between 0 and 10^7
+ * validation check: there are 664579 primes between 0 and 10^7
  */
 
 #include <stdio.h>
  */
 
 #include <stdio.h>