GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
put_window.c File Reference
#include <stdlib.h>
#include <grass/gis.h>
Include dependency graph for put_window.c:

Go to the source code of this file.

Functions

int G_put_window (const struct Cell_head *window)
 write the database region More...
 
int G__put_window (const struct Cell_head *window, char *dir, char *name)
 

Function Documentation

int G__put_window ( const struct Cell_head *  window,
char *  dir,
char *  name 
)
int G_put_window ( const struct Cell_head *  window)

write the database region

Writes the database region file (WIND) in the user's current mapset from region. Returns 1 if the region is written ok. Returns -1 if not (no diagnostic message is printed). Warning. Since this routine actually changes the database region, it should only be called by modules which the user knows will change the region. It is probably fair to say that under GRASS 3.0 only the g.region, and d.zoom modules should call this routine.

Parameters
region
Returns
int

Definition at line 32 of file put_window.c.

References G__put_window(), and getenv().

Referenced by make_mapset().