From 4506c1e56ec89ad42c1a37f4b9b41204e4d991d1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 27 Dec 2025 22:37:47 +0100 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- luhncheck.1 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 luhncheck.1 (limited to 'luhncheck.1') diff --git a/luhncheck.1 b/luhncheck.1 new file mode 100644 index 0000000..11da1e5 --- /dev/null +++ b/luhncheck.1 @@ -0,0 +1,85 @@ +.TH LUHNCHECK 1 LUHNCHECK + +.SH NAME +luhncheck \- Check number with Luhn's algorithm + +.SH SYNOPSIS +.B luhncheck +.IR number " ..." + +.SH DESCRIPTION +The +.B luhncheck +utility checks that a number, containing a check digit, +is valid according to Luhn's algorithm. + +.SH OPTIONS +The +.B luhncheck +utility conforms to the Base Definitions volume of POSIX.1-2017, +.IR "Section 12.2" , +.IR "Utility Syntax Guidelines" . +.PP +No options are supported. + +.SH OPERANDS +The following operand is supported: +.TP +.I number +Number to check. + +.SH STDIN +Not used. + +.SH INPUT FILES +None. + +.SH ENVIRONMENT VARIABLES +No environment variables affect the execution of +.BR luhncheck . + +.SH ASYNCHRONOUS EVENTS +Default. + +.SH STDOUT +The +.B luhncheck +utility will print one line per +.IR number , +in the order they are provided in the command line, +to the standard output. +Each line will be use the format + +.RS +.B \(dq%s is %s\en\(dq, +.IB number , +.RI < \fB\(dqOK\(dq\fP\ if\ valid,\ \fB\(dqinvalid\(dq\fP\ otherwise >. +.RE + +.SH STDERR +The standard error is only used for diagnostic messages. + +.SH OUTPUT FILES +None. + +.SH EXTENDED DESCRIPTION +None. + +.SH EXIT STATUS +The following exit values are returned: +.TP +0 +All +.IR number s +are valid. +.TP +1 +At least one +.I number +is invalid. +.TP +2 +An error occured. + +.SH SEE ALSO +.BR gluhncheck (1) -- cgit v1.2.3-70-g09d2