aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/file.h12
-rw-r--r--include/lib.h2
2 files changed, 13 insertions, 1 deletions
diff --git a/include/file.h b/include/file.h
new file mode 100644
index 0000000..0d2e791
--- /dev/null
+++ b/include/file.h
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+#ifndef FILE_H
+#define FILE_H
+struct filedata {
+ int lc;
+ unsigned len;
+ char *buf;
+};
+
+struct filedata readfile(FILE *fp);
+#endif
diff --git a/include/lib.h b/include/lib.h
index 41a25d7..9554605 100644
--- a/include/lib.h
+++ b/include/lib.h
@@ -2,7 +2,7 @@
#define LIB_H
void die(const char *message);
-char* formatBytes(double *bytes);
+char *formatBytes(unsigned bytes, float *rounded);
int intlen(unsigned i);
#endif