summaryrefslogtreecommitdiff
path: root/lib/convert.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/convert.h')
-rw-r--r--lib/convert.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/convert.h b/lib/convert.h
new file mode 100644
index 0000000..f07614b
--- /dev/null
+++ b/lib/convert.h
@@ -0,0 +1,20 @@
+#ifndef CONVERT_H
+#define CONVERT_H
+
+#include "def.h"
+
+#include <sys/stat.h>
+#include <stddef.h>
+
+long int get_number(const char* text);
+long int get_blkm(const char* text);
+mode_t get_mode(const char* text);
+
+bool streql(const char* a, const char* b);
+bool prefix(const char* pre, const char* str);
+
+void print_file_size(size_t bytes, char buf[5]);
+void print_date_time(time_t mills, char buf[13]);
+void print_file_path(char* path);
+
+#endif