diff options
| author | DrNuget <drnuget@outlook.com> | 2025-10-29 17:57:05 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2025-10-29 17:57:05 +0200 |
| commit | 77afd633c610e8bfde1b66384e9309cdf249ccbb (patch) | |
| tree | 89b3ded87a67220f2a762ff9ae16ab6171ea1fe0 /brailleboi.c | |
| download | brailleboi-77afd633c610e8bfde1b66384e9309cdf249ccbb.tar.gz | |
initial commit, only boilerplate
Diffstat (limited to 'brailleboi.c')
| -rw-r--r-- | brailleboi.c | 15 |
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); +} |
