From 32b87c5979a0e70994e4db65415ec0a2349c5618 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Mar 2016 10:55:20 +0100 Subject: Add more man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- man/zsets.3 | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 man/zsets.3 (limited to 'man/zsets.3') diff --git a/man/zsets.3 b/man/zsets.3 new file mode 100644 index 0000000..6185c03 --- /dev/null +++ b/man/zsets.3 @@ -0,0 +1,41 @@ +.TH ZSETS 3 libzahl +.SH NAME +zsets - Parses a string to a big integer +.SH SYNOPSIS +.nf +#include + +int zsets(z_t \fIa\fP, const char *\fIstr\fP); +.fi +.SH DESCRIPTION +.B zsets +parses the string +.I str +and stores the value in +.IR a . +.I a +must already be initialized with +.BR zinit (3). +.I b +must be a decimal integer. It may be +prefixed with at most one ASCII minus +sign or plus sign. +.SH RETURN VALUE +Upon successful completion, 0 is returned. +On error -1 is returned an errno is appropriately. +.SH ERRORS +This function fails if: +.TP +.B EINVAL +.B str +is not a valid decimal ASCII integer. +.P +On other errors, the function performs a long jump +using the jump buffer provided via +.BR zsetup (3). +.SH SEE ALSO +.BR zset (3), +.BR zsetu (3), +.BR zseti (3), +.BR zsave (3), +.BR zstr (3) -- cgit v1.2.3-70-g09d2