From eb13267f82e848d9a9b38a2791e5c7008bf8d157 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 00:39:31 +0200 Subject: zstr: add new parameter, n: the known limit out the length of the output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- zahl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zahl.h') 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. */ -- cgit v1.2.3-70-g09d2