-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurlencode.3
44 lines (41 loc) · 1.42 KB
/
urlencode.3
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
38
39
40
41
42
43
44
.\" Automatically generated by Pandoc 2.1.1
.\"
.TH "urlencode" "3" "" "" ""
.hy
.SH URLENCODE
.PP
urlencode(), urlencode_bv(), urlencode_fv(), urlencode_b(),
urlencode_f(), urlencode_post_f()
.SH SYNOPSIS
.nf
\f[C]
#include\ <str/urlencode.h>
/*\ Raw\ encoders.\ */
int\ urlencode\ \ \ (char\ _o[],\ size_t\ _osz,\ const\ char\ *_s);
int\ urlencode_f\ (FILE\ *_fp,\ const\ char\ _s[]);
/*\ Encode\ with\ printf\ expansion.\ (Uses\ the\ stack)\ */
int\ urlencode_fmt_sv\ (char\ _o[],\ size_t\ _osz,\ const\ char\ *_fmt,\ va_list\ _va);
int\ urlencode_fmt_s\ \ (char\ _o[],\ size_t\ _osz,\ const\ char\ *_fmt,\ ...);
int\ urlencode_fmt_fv\ (FILE\ *_fp,\ const\ char\ *_fmt,\ va_list\ _va);
int\ urlencode_fmt_f\ \ (FILE\ *_fp,\ const\ char\ *_fmt,\ ...);
/*\ Prepare\ a\ post.\ */
int\ urlencode_post_fv(FILE\ *_fp,\ bool\ _is_url,\ const\ char\ *_fmt,\ va_list\ va);
int\ urlencode_post_f\ (FILE\ *_fp,\ bool\ _is_url,\ const\ char\ *_fmt,\ ...);
\f[]
.fi
.SH DESCRIPTION
.PP
This functions are used to encode strings to URL encoding.
The buffer variants only fail if there's no enough memory in the stack
(see \f[I]alloca(3)\f[]).
The file pointer variants return \-1 in case of output error.
.SH COLLABORATING
.PP
For making bug reports, feature requests and donations visit one of the
following links:
.IP "1." 3
<gemini://harkadev.com/oss/>
.IP "2." 3
<https://harkadev.com/oss/> # SEE ALSO
.PP
\f[B]OPEN_MEMSTREAM(3)\f[], \f[B]ALLOCA(3)\f[]