harakit/docs/str.1

60 lines
1.5 KiB
Groff
Raw Permalink Normal View History

2024-02-02 03:41:57 +00:00
.\" Copyright (c) 20232024 DTB <trinity@trinity.moe>
.\" Copyright (c) 20232024 Emma Tebibyte <emma@tebibyte.media>
.\"
.\" This work is licensed under CC BY-SA 4.0. To see a copy of this license,
.\" visit <http://creativecommons.org/licenses/by-sa/4.0/>.
.\"
.TH STR 1 2024-06-17 "Harakit X.X.X"
.SH NAME
2024-06-18 05:02:13 +00:00
str \(en test string arguments
.\"
.SH SYNOPSIS
2024-06-04 05:07:19 +00:00
str
.B type string...
.\"
.SH DESCRIPTION
2024-06-04 05:07:19 +00:00
2024-06-18 05:02:13 +00:00
Test the character types of string arguments.
The tests in this program are equivalent to the functions with the same names in
.BR ctype.h (0p)
and are the methods by which string arguments are tested.
.\"
.SH DIAGNOSTICS
2024-06-04 05:07:19 +00:00
2024-06-18 05:02:13 +00:00
If all tests pass, the program will exit successfully. If any of the tests fail,
the program will exit unsuccessfully with an error code of 1.
When invoked incorrectly, a debug message will be printed and the program will
2024-06-04 22:11:33 +00:00
exit with the appropriate
.BR sysexits.h (3)
error code.
.\"
.SH CAVEATS
2024-06-04 05:07:19 +00:00
2024-06-18 05:02:13 +00:00
None of an empty string\(cqs contents pass any of the tests, so the program will
exit unsuccessfully if one is specified.
2024-06-04 22:11:33 +00:00
There\(cqs no way of knowing which argument failed the test without re-testing
arguments individually.
If a character in a string isn\(cqt valid ASCII, the program will exit
2024-06-04 22:11:33 +00:00
unsuccessfully.
.\"
.SH AUTHOR
2024-06-04 05:07:19 +00:00
Written by DTB
.MT trinity@trinity.moe
.ME .
.\"
.SH COPYRIGHT
2024-06-04 05:07:19 +00:00
2024-06-04 22:11:33 +00:00
Copyright \(co 2023 DTB. License AGPLv3+: GNU AGPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
.\"
.SH SEE ALSO
.BR ctype (3p),
.BR strcmp(1),
.BR ascii(7)