From ea2d6c93d28a9c5af94035057c52c36f0618ba2c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Mar 2016 09:11:48 +0100 Subject: zstr_length_positive is safe for non-positive, hence rename to zstr_length; and add zstr_length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- zahl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zahl.h') diff --git a/zahl.h b/zahl.h index c39510f..3816411 100644 --- a/zahl.h +++ b/zahl.h @@ -118,8 +118,8 @@ void zrand(z_t, enum zranddev, enum zranddist, z_t); char *zstr(z_t, char *); /* Write a in decimal onto b. */ int zsets(z_t, const char *); /* a := b */ -/* Length of a in radix b, assuming a > 0. */ -size_t zstr_length_positive(z_t, unsigned long long int); +/* Length of a in radix b. */ +size_t zstr_length(z_t, unsigned long long int); /* Inline functions. */ -- cgit v1.2.3-70-g09d2