aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-minc/project/main.c
blob: 272158fce82e3669d148681778f1b6090b3e4e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <minc2.h>

int main()
{
    int result;
    mihandle_t hvol;

    result = miopen_volume("/tmp/test.mnc", MI2_OPEN_READ, &hvol);
    if (result != MI_NOERROR) {
        fprintf(stderr, "Error opening the input file.\n");
    }

    miclose_volume(hvol);
    return 0;
}