maskfd.c

Go to the documentation of this file.
00001 #include <grass/gis.h>
00002 /*
00003  **********************************************************************
00004  *
00005  *   G_maskfd()
00006  *
00007  *   Returns the file descriptor opened for the current mask
00008  *
00009  *   returns:    fd number if mask is in use
00010  *               -1        if no mask is in use
00011  **********************************************************************/
00012 
00013 #include "G.h"
00014 /*
00015  * open mask file and return file descriptor
00016  */
00017 
00028 int G_maskfd ()
00029 {
00030         G__check_for_auto_masking () ;
00031 
00032         return G__.auto_mask > 0 ? G__.mask_fd : -1;
00033 }

Generated on Fri Nov 21 11:02:18 2008 for GRASS by  doxygen 1.5.1