aboutsummaryrefslogtreecommitdiffstats
path: root/src/redo.c
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-08-13 18:42:22 +0200
committerTharre <tharre3@gmail.com>2014-08-13 18:42:22 +0200
commitbaba3ed3d508a3ced57ffe19d23586b0008d85fa (patch)
treed1f1cb90126be861624aa5ef13384906e2fbc8ee /src/redo.c
parent40135fffdbc3389058699460c8e128fa8740cbe2 (diff)
downloadredo-baba3ed3d508a3ced57ffe19d23586b0008d85fa.tar.gz
redo-baba3ed3d508a3ced57ffe19d23586b0008d85fa.tar.xz
redo-baba3ed3d508a3ced57ffe19d23586b0008d85fa.zip
Add documentation and fix the one that's already there
Diffstat (limited to 'src/redo.c')
-rw-r--r--src/redo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redo.c b/src/redo.c
index b70cad7..40946dc 100644
--- a/src/redo.c
+++ b/src/redo.c
@@ -13,6 +13,7 @@
#include "dbg.h"
+/* Returns the amount of digits a number n has in decimal. */
static inline int digits(unsigned n) {
return (int) log10(n) + 1;
}