whatid.c File Reference
#include "common.h"
#include <string.h>
#include "bu/cmd.h"
#include "./ged_private.h"
Include dependency graph for whatid.c:

Go to the source code of this file.


int ged_whatid (struct ged *gedp, int argc, const char *argv[])

Detailed Description

The whatid command.

Definition in file whatid.c.

Function Documentation

int ged_whatid ( struct ged gedp,
int  argc,
const char *  argv[] 

Return the specified region's id.

Definition at line 36 of file whatid.c.

References bu_vls_printf(), bu_vls_trunc(), directory::d_flags, db_lookup(), rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, rt_db_internal::idb_ptr, LOOKUP_NOISY, rt_comb_internal::region_id, rt_db_free_internal(), rt_db_get_internal(), RT_DIR_NULL, RT_DIR_REGION, rt_uniresource, and usage().

Here is the call graph for this function: