aboutsummaryrefslogtreecommitdiffstats
path: root/man/zstr.3
blob: 9fef75b31dcbaea17afd8c275b7f713ba59ac445 (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
35
36
.TH ZSTR 3 libzahl
.SH NAME
zstr - Create a string representation of a big integer
.SH SYNOPSIS
.nf
#include <zahl.h>

char *zstr(z_t \fIa\fP, char *\fIstr\fP);
.fi
.SH DESCRIPTION
.B zstr
writes the integer
.I a
in decimal form into
.IR str .
If
.I str
is is
.BR 0 ,
.B zstr
create a new allocation.
.SH RETURN VALUE
.I str
is returned unless
.I str
is
.BR 0 .
If
.I str
is
.BR 0 ,
the string allocated by the function is returned.
.SH SEE ALSO
.BR zstr_length_positive (3),
.BR zsets (3),
.BR zload (3)