From 1a4696492e3cd478080e438950a7664a68fefcd6 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sat, 13 Jul 2024 13:32:53 +0200 Subject: Add manpages for each extlib function --- doc/strlwr.3 | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 doc/strlwr.3 (limited to 'doc/strlwr.3') diff --git a/doc/strlwr.3 b/doc/strlwr.3 new file mode 100644 index 0000000..ca2e971 --- /dev/null +++ b/doc/strlwr.3 @@ -0,0 +1,41 @@ +'\" t +.\" Copyright 2024 axtlos (axtlos@disroot.org) +.\" +.\" SPDX-License-Identifier: BSD-3-Clause + +.TH strlwr 3 2024-07-14 "extlib" +.SH NAME +strlwr, strupr \- convert a string to upper/lowercase +.SH LIBRARY +extlib extended standard library +.RI ( libextlib ", " \-lextlib ) +.SH SYNOPSIS +.nf +.B #include +.P +.BI "char *strlwr (char *s);" +.P +.BI "char *strupr (char *s);" +.P +.fi +.SH DESCRIPTION +The +.BR strlwr () +function converts +.I *s +to a lowercase version of itself. +The +.BR strupr () +function converts +.I *s +to an uppercase version of itself. +In both functions +.I *s +will be consumed and cannot be used after the function completes. +.fi +.SH RETURN VALUE +.BR strlwr () +and +.BR strupr () +return the string in the appropriate case, the resulting string will have to be manually free'd. +.\" SRC END -- cgit v1.2.3