aboutsummaryrefslogtreecommitdiff
path: root/doc/rrmdir.3
blob: 4d2db98d0f8020149d8fe260a876c25cf3b6bb3b (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
'\" t
.\" Copyright 2024 axtlos (axtlos@disroot.org)
.\"
.\" SPDX-License-Identifier: BSD-3-Clause

.TH rrmdir 3 2024-07-14 "extlib"
.SH NAME
rrmdir \- recursively remove a directory
.SH LIBRARY
extlib extended standard library
.RI ( libextlib ", " \-lextlib )
.SH SYNOPSIS
.nf
.B #define _XOPEN_SOURCE 500
.P
.B #include <extlib.h>
.P
.BI "int rrmdir(char *pathname);"
.fi
.SH DESCRIPTION
.BR rrmdir ()
loops over
.I *pathname
using
.BR nftw ()
and removes every file and directory found in
.IR *pathname .
.fi
.SH RETURN VALUE
.BR rrmdir ()
returns zero on sucess, non-zero on error.
.SH AUTHORS
This manual page was written by Rose
.IR <axtlos@disroot.org> .
.\" SRC END