GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Manage Library - Rename elements. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/vector.h>
#include <grass/raster3d.h>
#include <grass/glocale.h>
#include "manage_local_proto.h"
Go to the source code of this file.
Functions | |
int | M_do_rename (int n, const char *old, const char *new) |
Rename element. More... | |
Manage Library - Rename elements.
(C) 2001-2011 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file do_rename.c.
int M_do_rename | ( | int | n, |
const char * | old, | ||
const char * | new | ||
) |
Rename element.
n | element id |
old | source name |
new | destination name |
Definition at line 35 of file do_rename.c.
References _, G_find_raster2(), G_find_raster3d(), G_find_vector2(), G_mapset(), G_message(), G_remove(), G_rename(), G_strcasecmp(), G_verbose_message(), G_warning(), GMAPSET_MAX, M__hold_signals(), list::nelem, NULL, and Vect_rename().