.\" -*-nroff-*-
-.de VS
-.sp 1
-.in +5n
-.ft B
-.nf
-..
-.de VE
-.ft R
-.in -5n
-.sp 1
-.fi
-..
-.ie t \{\
-. de VP
-. sp .4v
-..
-\}
-.el \{\
-. de VP
-. sp
-..
-\}
-.TH str 3 "20 June 1999" "Straylight/Edgeware" "mLib utilities library"
-.SH NAME
-str \- small string utilities
+.\"
+.\" Manual for string utilities
+.\"
+.\" (c) 1999--2001, 2005--2007, 2009, 2019, 2024 Straylight/Edgeware
+.\"
+.
+.\"----- Licensing notice ---------------------------------------------------
+.\"
+.\" This file is part of the mLib utilities library.
+.\"
+.\" mLib is free software: you can redistribute it and/or modify it under
+.\" the terms of the GNU Library General Public License as published by
+.\" the Free Software Foundation; either version 2 of the License, or (at
+.\" your option) any later version.
+.\"
+.\" mLib is distributed in the hope that it will be useful, but WITHOUT
+.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
+.\" License for more details.
+.\"
+.\" You should have received a copy of the GNU Library General Public
+.\" License along with mLib. If not, write to the Free Software
+.\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+.\" USA.
+.
+.\"--------------------------------------------------------------------------
+.so ../defs.man \" @@@PRE@@@
+.
+.\"--------------------------------------------------------------------------
+.TH str 3mLib "20 June 1999" "Straylight/Edgeware" "mLib utilities library"
.\" @str_qword
.\" @str_qsplit
.\" @str_getword
.\" @str_matchx
.\" @str_match
.\" @str_sanitize
+.
+.\"--------------------------------------------------------------------------
+.SH NAME
+str \- small string utilities
+.
+.\"--------------------------------------------------------------------------
.SH SYNOPSIS
+.
.nf
.B "#include <mLib/str.h>"
.PP
.BI "int str_match(const char *" p ", const char *" s );
.BI "void str_sanitize(char *" d ", const char *" p ", size_t " sz );
.fi
+.
+.\"--------------------------------------------------------------------------
.SH DESCRIPTION
+.
The header file
.B <mLib/str.h>
contains a few small utility functions for manipulating null-terminated
.RB ` _ '
when written to
.IR d .
+.
+.\"--------------------------------------------------------------------------
.SH EXAMPLES
+.
Given the code
.VS
char p[] = " alpha beta gamma delta ";
and
.B rest
will be null.
+.
+.\"--------------------------------------------------------------------------
.SH "SEE ALSO"
+.
.BR mLib (3).
+.
+.\"--------------------------------------------------------------------------
.SH AUTHOR
+.
Mark Wooding, <mdw@distorted.org.uk>
+.
+.\"----- That's all, folks --------------------------------------------------