summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-13 12:14:12 -0500
committerSam Anthony <sam@samanthony.xyz>2024-11-13 12:14:12 -0500
commit44792fd5369cfe2ad1478b72bf22b0d1829f291b (patch)
treeee991768c1632b50eaaba6e6b4f873eae420871a /balls.h
parent2e442c894d50c42aea748d21a6f08add123e9a70 (diff)
downloadballs-44792fd5369cfe2ad1478b72bf22b0d1829f291b.zip
move readFile() out of balls.c
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/balls.h b/balls.h
index 21d8bc1..f17243b 100644
--- a/balls.h
+++ b/balls.h
@@ -19,6 +19,8 @@ typedef struct {
size_t size; /* Length of cell array. */
} Partition;
+int readFile(const char *filename, char **contents, size_t *size);
+
Partition partitionCollisions(size_t nBalls);
void freePartition(Partition part);
void printPartition(Partition part);