DOKK / manpages / debian 10 / alliance / incatalogfeed.3.en
INCATALOGFEED(3) MBK UTILITY FUNCTIONS INCATALOGFEED(3)

incatalogfeed - test if cell belongs to the catalog file

See the file buster/alliance/alc_origin.1.en.gz.

#include "mut.h"
int incatalogfeed(figname)
char ∗figname;

Name of the cell to be checked

incatalogfeed checks a cell represented by its figname beeing present in the catalog file with the 'F' attribut. This means that the cell is a feed through, and does not have a logical equivalent representation while beeing physicaly used.
This information is mostly needed by routers, since "logical feed through" has no design meaning.
The catalog is the sum of all the catalogs of the cells libraries specified in the MBK_CATA_LIB(1) and MBK_WORK_LIB(1). The catalogs of the MBK_CATA_LIB(1) are the files called CATAL, and the MBK_WORK_LIB(1) is by default CATAL but can be changed to MBK_CATAL_NAME(1).

incatalogfeed returns 0 if the cell does not belong to the catalog with the 'F' attribut, a value different from 0 if it does.

#include "mut.h"
char ∗tell_if_incatalogfeed(name)
char ∗name;
{
	return incatalogfeed(name) ? "Jawohl, mein Herr" : "Nein, danke";
}

mbk(1), incatalog(3), incatalogdelete(3), incataloggds(3).

See the file buster/alliance/alc_bug_report.1.en.gz.

October 1, 1997 ASIM/LIP6