#include <maglo.h> int MAGopen(MagImage *mag, const char *path);
The MAGopen() function opens and checks the header of a MAG image named by path and associates mag with it.
mag is a pointer to an already-allocated memory chunk.
MAGclose() should be called after procedures against mag to release memory resource associated with mag.
Upon successful completion MAGopen() returns MAGERR_NOERROR. Otherwise errno is set if eligible and error code is returned.
Table of Contents