diff options
author | imp <imp@FreeBSD.org> | 1999-01-06 08:14:26 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-01-06 08:14:26 +0000 |
commit | 4695982235738320dd9801a117ce0e700b0b2fdf (patch) | |
tree | df7c21f08679025acb34002e2f1dee12f7b97fc0 /games/factor/factor.6 | |
parent | 1eb0469a28ede5948a08d146e27a84ea0d435bf3 (diff) | |
download | FreeBSD-src-4695982235738320dd9801a117ce0e700b0b2fdf.zip FreeBSD-src-4695982235738320dd9801a117ce0e700b0b2fdf.tar.gz |
added -h flag to allow for hexidecimal output.
Use '0' for base rather than 10 to allow for more flexible input bases.
Inspired by changes in PR 7402, but mostly redone by me to get past
bde filter.
Submitted by: Timo J. Rinne
PR: 7402
Diffstat (limited to 'games/factor/factor.6')
-rw-r--r-- | games/factor/factor.6 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/games/factor/factor.6 b/games/factor/factor.6 index 7a9ea12..4844780 100644 --- a/games/factor/factor.6 +++ b/games/factor/factor.6 @@ -45,14 +45,14 @@ factor, primes \- factor a number, generate primes .SH SYNOPSIS .B factor -[ number ] ... +-[h] [ number ] ... .PP .B primes -[ start [ stop ]] +-[h] [ start [ stop ]] .SH DESCRIPTION The .I factor -utility will factor integers between -2147483648 and 2147483647 inclusive. +utility will factor integers between 0 and 4294967295 inclusive. When a number is factored, it is printed, followed by a ``:'', and the list of factors on a single line. Factors are listed in ascending order, and are preceded by a space. @@ -106,6 +106,11 @@ The .B start value is terminated by a non-digit character (such as a newline). The input line must not be longer than 255 characters. +.SH OPTIONS +.LP +.TP 8 +.B \-h +Print the results in hexadecimal rather than decimal. .SH DIAGNOSTICS Out of range or invalid input results in `ouch' being written to standard error. |