.\" Copyright (c) 2023–2024 DTB .\" Copyright (c) 2023–2024 Emma Tebibyte .\" .\" This work is licensed under CC BY-SA 4.0. To see a copy of this license, .\" visit . .\" .TH STR 1 2024-06-06 "Bonsai Core Utilites 0.13.8" .SH NAME str \(en test the character types of string arguments .\" .SH SYNOPSIS str .RB [ type ] .RB [ string... ] .\" .SH DESCRIPTION Test 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 If all tests pass, the program will exit with an exit code of 0. If any of the tests fail, the program will exit unsuccessfully with an error code of 1. An empty string will cause an unsuccessful exit as none of its contents pass any tests. When invoked incorrectly, a debug message will be printed and the program will exit with the appropriate .BR sysexits.h (3) error code. .\" .SH CAVEATS 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 unsuccessfully. .\" .SH AUTHOR Written by DTB .MT trinity@trinity.moe .ME . .\" .SH COPYRIGHT Copyright \(co 2023 DTB. License AGPLv3+: GNU AGPL version 3 or later . .\" .SH SEE ALSO .BR ctype (3p), .BR strcmp(1), .BR ascii(7)