aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-27 00:39:31 +0200
committerMattias Andrée <maandree@kth.se>2016-04-27 00:39:31 +0200
commiteb13267f82e848d9a9b38a2791e5c7008bf8d157 (patch)
tree78291e85edd590b0d429a0dab611b85c621d97d7 /zahl.h
parentzstr_length.3: add missing blank space (diff)
downloadlibzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.gz
libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.bz2
libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.xz
zstr: add new parameter, n: the known limit out the length of the output
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'zahl.h')
-rw-r--r--zahl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zahl.h b/zahl.h
index aca34f4..7d1f772 100644
--- a/zahl.h
+++ b/zahl.h
@@ -151,7 +151,7 @@ void zrand(z_t, enum zranddev, enum zranddist, z_t);
/* String conversion. */
-char *zstr(z_t, char *); /* Write a in decimal onto b. */
+char *zstr(z_t, char *, size_t); /* Write a in decimal onto b. c is the output size or 0. */
int zsets(z_t, const char *); /* a := b */
/* Length of a in radix b. */