aboutsummaryrefslogtreecommitdiff
path: root/brailleboi.c
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-10-29 17:57:05 +0200
committerDrNuget <drnuget@outlook.com>2025-10-29 17:57:05 +0200
commit77afd633c610e8bfde1b66384e9309cdf249ccbb (patch)
tree89b3ded87a67220f2a762ff9ae16ab6171ea1fe0 /brailleboi.c
downloadbrailleboi-77afd633c610e8bfde1b66384e9309cdf249ccbb.tar.gz
initial commit, only boilerplate
Diffstat (limited to 'brailleboi.c')
-rw-r--r--brailleboi.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/brailleboi.c b/brailleboi.c
new file mode 100644
index 0000000..a892dfa
--- /dev/null
+++ b/brailleboi.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+
+#include "brailleboi.h"
+
+int brailleInit(int width, int height, image_buffer* buf)
+{
+ buf->contents = malloc((width * height) * sizeof(int));
+ buf->width = width;
+ buf->height = height;
+}
+
+int brailleStop(image_buffer* buf)
+{
+ free(buf->contents);
+}