aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-27 22:37:47 +0100
committerMattias Andrée <m@maandree.se>2025-12-27 22:37:47 +0100
commit4506c1e56ec89ad42c1a37f4b9b41204e4d991d1 (patch)
tree477d80ea90a4d827e70bb5d85781c1e366cee124 /README
downloadgluhncheck-4506c1e56ec89ad42c1a37f4b9b41204e4d991d1.tar.gz
gluhncheck-4506c1e56ec89ad42c1a37f4b9b41204e4d991d1.tar.bz2
gluhncheck-4506c1e56ec89ad42c1a37f4b9b41204e4d991d1.tar.xz
First commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'README')
-rw-r--r--README40
1 files changed, 40 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..08f88d5
--- /dev/null
+++ b/README
@@ -0,0 +1,40 @@
+NAME
+ luhncheck - Check number with Luhn's algorithm
+
+SYNOPSIS
+ luhncheck number ...
+
+DESCRIPTION
+ The luhncheck utility checks that a number, containing a
+ check digit, is valid according to Luhn's algorithm.
+
+OPTIONS
+ The luhncheck utility conforms to the Base Definitions volume
+ of POSIX.1-2017, Section 12.2, Utility Syntax Guidelines.
+
+ No options are supported.
+
+OPERANDS
+ The following operand is supported:
+
+ number
+ Number to check.
+
+STDOUT
+ The luhncheck utility will print one line per number, in the
+ order they are provided in the command line, to the standard
+ output. Each line will be use the format
+
+ "%s is %s\n", number, <"OK" if valid, "invalid" otherwise>.
+
+EXIT STATUS
+ The following exit values are returned:
+
+ 0 All numbers are valid.
+
+ 1 At least one number is invalid.
+
+ 2 An error occured.
+
+SEE ALSO
+ gluhncheck(1)