#include <maglo.h> int MAGclose(MagImage *mag);
The MAGclose() function dissociates the named mag from its underlying file.
MAGclose() should be called after procedures against mag associated to a file using MAGopen() to release memory resource associated with mag.
Upon successful completion MAGclose() returns MAGERR_NOERROR.