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; }