#include #include #include #include "w2Dgn.h" #include #include externvoidloadCellLibraryIfNeeded(char*libToLoad); /*----------------------------------------------------------------------+ | | | name GetCellNameFromCellLib | | | | author HumKyung.Baek | | | +----------------------------------------------------------------------*/ Public intGetCellNameFromCellLib(char* pOutputTextFilePath , char* pstrCellLib) { ULong elemAddr[250], eofPos, filePos, actualPos, readPos; intscanWords, status, i,j=0, numAddr, fileNum=CELL_LIB, offset; charcellName[10], cellDescription[30], msg[132]; Scanlist scanList; MSElement cellElm; /*cell element descriptor */ FILE* fp = NULL; if(fp = mdlTextFile_open(pOutputTextFilePath , TEXTFILE_WRITE)) { loadCellLibraryIfNeeded(pstrCellLib); mdlScan_initScanlist (&scanList); mdlScan_noRangeCheck (&scanList); scanList.scantype = ELEMTYPE | NESTCELL; ...