diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..242e464 --- /dev/null +++ b/src/main.c @@ -0,0 +1,16 @@ +#include <stdio.h> +#include <stdlib.h> + +#include "ppm.h" + +int main(int argc, char *argv[]) +{ + Image img; + ppm_read("images/boxes_1.ppm", &img); + + printf("width: %d\n", img.width); + printf("height: %d\n", img.height); + printf("bits: %d\n", img.pixel_bits); + printf("data[2]: %d\n", img.data[2]); + return 0; +} |