aboutsummaryrefslogtreecommitdiffstats
path: root/man/zload.3
blob: 86d421389fc87c93398542f7581ad9b9df6fb0b2 (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
.TH ZLOAD 3 libzahl
.SH NAME
zload - Unmarshal a big integer from a buffer
.SH SYNOPSIS
.nf
#include <zahl.h>

size_t zload(z_t \fIa\fP, const void *\fIbuf\fP);
.fi
.SH DESCRIPTION
.B zload
unmarshals a big integer from
.I buf
into
.IR a .
The big integer should have be saved using
.BR zsave (3),
with the same version of libzahl
and on the processor architecture.
.P
.I a
must have been initialized with
.BR zinit (3).
.SH RETURN VALUE
The number of bytes read from
.IR buf .
On failure, 0 is returned.
.SH ERRORS
This function may failure for any reason specified for
.BR realloc (3).
.SH SEE ALSO
.BR zinit (3),
.BR zsave (3),
.BR zsets (3)