blob: a892dfa3bd6e69c35968a24639448e4eec736a02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}
|