aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-02 09:11:48 +0100
committerMattias Andrée <maandree@kth.se>2016-03-02 09:12:31 +0100
commitea2d6c93d28a9c5af94035057c52c36f0618ba2c (patch)
tree73cc4b6cbb66e623ae6f5ee933c489bae97a01d8 /zahl.h
parentWhy zbits returns 1 for 0 (diff)
downloadlibzahl-ea2d6c93d28a9c5af94035057c52c36f0618ba2c.tar.gz
libzahl-ea2d6c93d28a9c5af94035057c52c36f0618ba2c.tar.bz2
libzahl-ea2d6c93d28a9c5af94035057c52c36f0618ba2c.tar.xz
zstr_length_positive is safe for non-positive, hence rename to zstr_length; and add zstr_length
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'zahl.h')
-rw-r--r--zahl.h4
1 files changed, 2 insertions, 2 deletions
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. */