BOOTSTRAP (kcms) functions


LIBRARY ROUTINE

kcms_list_get_attribute - get attribute from list of kcms objects

LIBRARY CALL

kstring *
kcms_list_get_attribute(
   klist     *list,
   kcms_attr  attribute,
   int       *count)

INPUT

OUTPUT

none

RETURN VALUE

none

DESCRIPTION

This routine takes a list of kcms objects, and gets a string attribute from each, building a string of the values file.

The following code will get a list of all library objects in the design toolbox, then build an array of strings which contains the names of the library objects.

   kobject   toolbox;
   klist    *libraries;
   kstring  *libnames;
   int       nlibs;

toolbox = kcms_open_toolbox("design"); libraries = kcms_get_objects(toolbox, KCMS_LIBRARY); libnames = kcms_list_get_attribute(libraries, KCMS_NAME, &nlibs);

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kcms/src/public.c

SEE ALSO

kcms(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.