udbLookupEntity

Description

Returns a list of entities that match the specified name, kind, and/or shortname.

Syntax

#include “udb/udb.h” 
void  udbLookupEntity( char *name, char *kind, 
                       int shortname, 
                       UdbEntity **entities, 
                       int *matchline); 

Arguments

Argument
Description
char *name
Name of entity to lookup.
char *kind
Kind of entity to lookup.
int shortname
If true, allow shortname matches. Longname matches are always allowed.
UdbEntity **entities
Returns allocated list of entities. This list may be freed with udbListEntityFree.
int *matchline
If not NULL, returns the size of the entities list.

Return Values

There are no return values.

Example Usage

udbLookupEntity(“tool”, NULL, NULL, &entity, match); 

See Also

udbLookupEntityByReference

udbLookupFile

udbLookupReferenceExists


Scientific Toolworks, Inc.
http://www.scitools.com