GRASS 8 Programmer's Manual 8.6.0dev(2026)-b43c9b8403
Loading...
Searching...
No Matches
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.
 

Detailed Description

Manage Library - Remove elements.

SPDX-FileCopyrightText: 2001-2011 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

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 31 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().