From a1a1d9ed137c8e404e7f0bd41804099ef18b9267 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 29 Feb 2016 15:34:38 +0100 Subject: Add a number of man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- man/zload.3 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 man/zload.3 (limited to 'man/zload.3') diff --git a/man/zload.3 b/man/zload.3 new file mode 100644 index 0000000..86d4213 --- /dev/null +++ b/man/zload.3 @@ -0,0 +1,34 @@ +.TH ZLOAD 3 libzahl +.SH NAME +zload - Unmarshal a big integer from a buffer +.SH SYNOPSIS +.nf +#include + +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) -- cgit v1.2.3-70-g09d2