.\" -*-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 url 3 "20 June 1999" "Straylight/Edgeware" "mLib utilities library"
-.SH NAME
-url \- manipulation of form-urlencoded strings
+.\"
+.\" Manual for form-urlencoding
+.\"
+.\" (c) 1999, 2001, 2005--2007, 2009, 2023, 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 url 3mLib "20 June 1999" "Straylight/Edgeware" "mLib utilities library"
.\" @url_initenc
.\" @url_enc
.\" @url_initdec
.\" @url_dec
+.
+.\"--------------------------------------------------------------------------
+.SH NAME
+url \- manipulation of form-urlencoded strings
+.
+.\"--------------------------------------------------------------------------
.SH SYNOPSIS
+.
.nf
.B "#include <mLib/url.h>"
.PP
.BI "void url_initdec(url_dctx *" ctx ", const char *" p );
.BI "int url_dec(url_dctx *" ctx ", dstr *" n ", dstr *" v );
.fi
+.
+.\"--------------------------------------------------------------------------
.SH DESCRIPTION
+.
The functions in
.B <mLib/url.h>
read and write `form-urlencoded' data, as specified in RFC1866. The
the use of the semicolon, and when decoding, it
.I permits
its use.)
+.
+.\"--------------------------------------------------------------------------
.SH EXAMPLE
+.
The example code below demonstrates converting between a symbol table
and a urlencoded representation. The code is untested.
.VS
url_enc(&c, d, SYM_NAME(v), v->v);
}
.VE
+.
+.\"--------------------------------------------------------------------------
.SH "SEE ALSO"
+.
.BR mLib (3).
+.
+.\"--------------------------------------------------------------------------
.SH AUTHOR
+.
Mark Wooding, <mdw@distorted.org.uk>.
+.
+.\"----- That's all, folks --------------------------------------------------