From b2182396df5d99ff5c26161aaffa5ced879742c5 Mon Sep 17 00:00:00 2001 From: axtlos Date: Fri, 27 Sep 2024 21:31:47 +0200 Subject: Fix join_str on musl and add manpage --- doc/join_str.3 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/join_str.3 (limited to 'doc') diff --git a/doc/join_str.3 b/doc/join_str.3 new file mode 100644 index 0000000..3c778ae --- /dev/null +++ b/doc/join_str.3 @@ -0,0 +1,35 @@ +'\" t +.\" Copyright 2024 axtlos (axtlos@disroot.org) +.\" +.\" SPDX-License-Identifier: BSD-3-Clause + +.TH trim 3 2024-09-27 "extlib" +.SH NAME +join_str \- join an array of strings seperated by a given delimiter +.SH LIBRARY +extlib extended standard library +.RI ( libextlib ", " \-lextlib ) +.SH SYNOPSIS +.nf +.B #include +.P +.BI "char *join_str (char **s, size_t len, char *delim);" +.P +.fi +.SH DESCRIPTION +The +.BR join_str () +function joins the first +.I len +elements of +.I **s +into one string where each element of the array is seperated by +.IR *delim . +.fi +.SH RETURN VALUE +.BR join_str () +returns the joined string. +.SH AUTHORS +This manual page was written by Rose +.IR . +.\" SRC END -- cgit v1.2.3