Table of Contents

Name

MAGclose - close a MAG image

Synopsis


#include <maglo.h>
int MAGclose(MagImage *mag);

Description

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.

Return Values

Upon successful completion MAGclose() returns MAGERR_NOERROR.

Errors

MAGERR_MEM_ERROR
The mag is not associated to any file.

See Also

MAGopen(3) , libmaglo(7)


Table of Contents