Add atolx() which understands extensions for kilobytes and megabytes and such.
diff --git a/lib/lib.h b/lib/lib.h
index 07cc9cd..e2d055b 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -65,6 +65,7 @@
 void itoa_to_buf(int n, char *buf, unsigned buflen);
 char *utoa(unsigned n);
 char *itoa(int n);
+long atolx(char *c);
 off_t fdlength(int fd);
 struct dirtree *read_dirtree_node(char *path);
 struct dirtree *read_dirtree(char *path, struct dirtree *parent);