diff options
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); +} |
