aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
blob: 242e464dc2d3701d8b7b8db6d99254cd922616b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}
Feel free to download, copy and edit any repo