#include <stdlib.h>
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_put_window (struct Cell_head *window) |
write the database region | |
int | G__put_window (struct Cell_head *window, char *dir, char *name) |
int G__put_window | ( | struct Cell_head * | window, | |
char * | dir, | |||
char * | name | |||
) |
Definition at line 41 of file put_window.c.
References G__write_Cell_head3(), and G_fopen_new().
Referenced by G__make_location(), and G_put_window().
int G_put_window | ( | 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.
region |
Definition at line 32 of file put_window.c.
References G__put_window(), and getenv().