aboutsummaryrefslogtreecommitdiff
path: root/doc/replace_str.3
blob: 542813647057838907935704973bd1baa345bbe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'\" t
.\" Copyright 2024 axtlos (axtlos@disroot.org)
.\"
.\" SPDX-License-Identifier: BSD-3-Clause

.TH replace_str 3 2024-07-14 "extlib"
.SH NAME
replace_str \- replace a substring in a string
.SH LIBRARY
extlib extended standard library
.RI ( libextlib ", " \-lextlib )
.SH SYNOPSIS
.nf
.B #include <extlib.h>
.P
.BI "char *replace_str (char *s, char *old, char *replace);"
.P
.fi
.SH DESCRIPTION
The
.BR replace_str ()
function replaces any matches of
.I *old
in the string
.I *s
with the string
.IR *replace .
.fi
.SH RETURN VALUE
.BR replace_str ()
returns a copy of
.I *s
with all the substrings replaced.
.SH AUTHORS
This manual page was written by Rose
.IR <axtlos@disroot.org> .
.\" SRC END