File: firestring_estr_base64_encode.3

package info (click to toggle)
firedns 0.9.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 322
  • sloc: ansic: 4,026; sh: 964; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (6)
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
.\" (C) 2002 Ian Gulliver
.TH firestring_estr_base64_encode 3 2002-09-21
.SH NAME
firestring_estr_base64_encode \-
encode an estring via base64 into another estring
.SH SYNOPSIS
.B #include <firestring.h>
.br
.B -lfirestring
.LP
.BI "int firestring_estr_base64_encode(struct firestring_estr_t *" "destination" ", struct firestring_estr_t *" "source" ")"
.SH DESCRIPTION
firestring_estr_base64_encode() encodes the contents of
.I source
using the base64 algorithm into
.IR destination ,
provided that there is room in
.IR destination .
The minimum required space in destination is the length of source * 4 / 3 + 4.
.SH RETURN VALUE
0 if the string was encoded successfully; 1 if there was insufficient space in
.I destination
for the encoding to occur.
.SH AUTHOR
Ian Gulliver <ian@penguinhosting.net>
.SH SEE ALSO
.BR libfirestring (3)