aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-04-10 20:14:18 -0400
committerShav Kinderlehrer <[email protected]>2023-04-10 20:14:18 -0400
commit0e59c5f27cc3badd3e48a87bba39bdac9077e1a5 (patch)
treeb90c2caa254233426b326f6a38011ea15435d840 /include
parentaeafcc6891913327aa784da5879bdf9b8cf11cc4 (diff)
downloadlat-0e59c5f27cc3badd3e48a87bba39bdac9077e1a5.tar.gz
lat-0e59c5f27cc3badd3e48a87bba39bdac9077e1a5.zip
Breakup monolithic code
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