libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

zload.3 (535B)


      1 .TH ZLOAD 3 libzahl
      2 .SH NAME
      3 zload - Unmarshal a big integer from a buffer
      4 .SH SYNOPSIS
      5 .nf
      6 #include <zahl.h>
      7 
      8 size_t zload(z_t \fIa\fP, const void *\fIbuf\fP);
      9 .fi
     10 .SH DESCRIPTION
     11 .B zload
     12 unmarshals a big integer from
     13 .I buf
     14 into
     15 .IR a .
     16 The big integer should have be saved using
     17 .BR zsave (3),
     18 with the same version of libzahl
     19 and on the processor architecture.
     20 .P
     21 .I a
     22 must have been initialized with
     23 .BR zinit (3).
     24 .SH RETURN VALUE
     25 The number of bytes read from
     26 .IR buf .
     27 .SH SEE ALSO
     28 .BR zinit (3),
     29 .BR zsave (3),
     30 .BR zsets (3)