GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-77aab223bc
do_remove.c File Reference

Manage Library - Remove elements. More...

#include <stdio.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/vector.h>
#include <grass/glocale.h>
#include <grass/raster3d.h>
#include "manage_local_proto.h"
Include dependency graph for do_remove.c:

Go to the source code of this file.

Functions

int M_do_remove (int n, const char *old)
 Remove elements from data base. More...
 

Detailed Description

Manage Library - Remove 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.

Author
Original author CERL

Definition in file do_remove.c.

Function Documentation

◆ M_do_remove()

int M_do_remove ( int  n,
const char *  old 
)

Remove elements from data base.

Parameters
nelement id
oldname of element to be removed
Returns
0 on success
1 on error

Definition at line 33 of file do_remove.c.

References _, G_fatal_error(), G_find_raster2(), G_find_raster3d(), G_find_vector2(), G_mapset(), G_message(), G_name_is_fully_qualified(), G_remove(), G_strcasecmp(), G_verbose_message(), G_warning(), GMAPSET_MAX, GNAME_MAX, M__hold_signals(), list::nelem, NULL, and Vect_delete().