abc-master
|
#include "extra.h"
Go to the source code of this file.
Functions | |
ABC_NAMESPACE_IMPL_START char * | Extra_FileGetSimilarName (char *pFileNameWrong, char *pS1, char *pS2, char *pS3, char *pS4, char *pS5) |
char * | Extra_FileNameExtension (char *FileName) |
char * | Extra_FileNameAppend (char *pBase, char *pSuffix) |
char * | Extra_FileNameGeneric (char *FileName) |
char * | Extra_FileNameGenericAppend (char *pBase, char *pSuffix) |
void | Extra_FileNameCorrectPath (char *FileName) |
char * | Extra_FileNameWithoutPath (char *FileName) |
char * | Extra_FilePathWithoutName (char *FileName) |
char * | Extra_FileDesignName (char *pFileName) |
int | Extra_FileCheck (char *pFileName) |
int | Extra_FileSize (char *pFileName) |
char * | Extra_FileRead (FILE *pFile) |
char * | Extra_FileRead2 (FILE *pFile, FILE *pFile2) |
char * | Extra_FileReadContents (char *pFileName) |
char * | Extra_FileReadContents2 (char *pFileName, char *pFileName2) |
int | Extra_FileIsType (char *pFileName, char *pS1, char *pS2, char *pS3) |
char * | Extra_TimeStamp () |
unsigned | Extra_ReadBinary (char *Buffer) |
void | Extra_PrintBinary (FILE *pFile, unsigned Sign[], int nBits) |
DECLARATIONS ///. More... | |
int | Extra_ReadHex (unsigned Sign[], char *pString, int nDigits) |
int | Extra_ReadHexadecimal (unsigned Sign[], char *pString, int nVars) |
void | Extra_PrintHexadecimal (FILE *pFile, unsigned Sign[], int nVars) |
void | Extra_PrintHexadecimalString (char *pString, unsigned Sign[], int nVars) |
void | Extra_PrintHex (FILE *pFile, unsigned *pTruth, int nVars) |
void | Extra_PrintHexReverse (FILE *pFile, unsigned *pTruth, int nVars) |
void | Extra_PrintSymbols (FILE *pFile, char Char, int nTimes, int fPrintNewLine) |
char * | Extra_StringAppend (char *pStrGiven, char *pStrAdd) |
void | Extra_StringClean (char *pStrGiven, char *pCharKeep) |
int | Extra_StringCompare (const char *pp1, const char *pp2) |
void | Extra_FileSort (char *pFileName, char *pFileNameOut) |
void | Extra_FileLineNumAdd (char *pFileName, char *pFileNameOut) |
int Extra_FileCheck | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description [The file should be closed.]
SideEffects []
SeeAlso []
Definition at line 281 of file extraUtilFile.c.
char* Extra_FileDesignName | ( | char * | pFileName | ) |
Definition at line 250 of file extraUtilFile.c.
ABC_NAMESPACE_IMPL_START char* Extra_FileGetSimilarName | ( | char * | pFileNameWrong, |
char * | pS1, | ||
char * | pS2, | ||
char * | pS3, | ||
char * | pS4, | ||
char * | pS5 | ||
) |
CFile****************************************************************
FileName [extraUtilFile.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [extra]
Synopsis [File management utilities.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]AutomaticStart AutomaticEnd Function*************************************************************
Synopsis [Tries to find a file name with a different extension.]
Description []
SideEffects []
SeeAlso []
Definition at line 71 of file extraUtilFile.c.
int Extra_FileIsType | ( | char * | pFileName, |
char * | pS1, | ||
char * | pS2, | ||
char * | pS3 | ||
) |
Function*************************************************************
Synopsis [Returns one if the file has a given extension.]
Description []
SideEffects []
SeeAlso []
Definition at line 420 of file extraUtilFile.c.
void Extra_FileLineNumAdd | ( | char * | pFileName, |
char * | pFileNameOut | ||
) |
Function*************************************************************
Synopsis [Appends line number in the end.]
Description []
SideEffects []
SeeAlso []
Definition at line 816 of file extraUtilFile.c.
char* Extra_FileNameAppend | ( | char * | pBase, |
char * | pSuffix | ||
) |
Function*************************************************************
Synopsis [Returns the composite name of the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 146 of file extraUtilFile.c.
void Extra_FileNameCorrectPath | ( | char * | FileName | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 208 of file extraUtilFile.c.
char* Extra_FileNameExtension | ( | char * | FileName | ) |
Function*************************************************************
Synopsis [Returns the pointer to the file extension.]
Description []
SideEffects []
SeeAlso []
Definition at line 125 of file extraUtilFile.c.
char* Extra_FileNameGeneric | ( | char * | FileName | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 165 of file extraUtilFile.c.
char* Extra_FileNameGenericAppend | ( | char * | pBase, |
char * | pSuffix | ||
) |
Function*************************************************************
Synopsis [Returns the composite name of the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 185 of file extraUtilFile.c.
char* Extra_FileNameWithoutPath | ( | char * | FileName | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 228 of file extraUtilFile.c.
char* Extra_FilePathWithoutName | ( | char * | FileName | ) |
Definition at line 236 of file extraUtilFile.c.
char* Extra_FileRead | ( | FILE * | pFile | ) |
Function*************************************************************
Synopsis [Read the file into the internal buffer.]
Description []
SideEffects []
SeeAlso []
Definition at line 336 of file extraUtilFile.c.
char* Extra_FileRead2 | ( | FILE * | pFile, |
FILE * | pFile2 | ||
) |
Definition at line 354 of file extraUtilFile.c.
char* Extra_FileReadContents | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Read the file into the internal buffer.]
Description []
SideEffects []
SeeAlso []
Definition at line 388 of file extraUtilFile.c.
char* Extra_FileReadContents2 | ( | char * | pFileName, |
char * | pFileName2 | ||
) |
Definition at line 397 of file extraUtilFile.c.
int Extra_FileSize | ( | char * | pFileName | ) |
Function*************************************************************
Synopsis [Returns the file size.]
Description [The file should be closed.]
SideEffects []
SeeAlso []
Definition at line 308 of file extraUtilFile.c.
void Extra_FileSort | ( | char * | pFileName, |
char * | pFileNameOut | ||
) |
Function*************************************************************
Synopsis [Sorts lines in the file alphabetically.]
Description []
SideEffects []
SeeAlso []
Definition at line 757 of file extraUtilFile.c.
void Extra_PrintBinary | ( | FILE * | pFile, |
unsigned | Sign[], | ||
int | nBits | ||
) |
DECLARATIONS ///.
Function*************************************************************
Synopsis [Prints the bit string.]
Description []
SideEffects []
SeeAlso []
Definition at line 497 of file extraUtilFile.c.
void Extra_PrintHex | ( | FILE * | pFile, |
unsigned * | pTruth, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Prints the hex unsigned into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 620 of file extraUtilFile.c.
void Extra_PrintHexadecimal | ( | FILE * | pFile, |
unsigned | Sign[], | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Prints the hex unsigned into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 565 of file extraUtilFile.c.
void Extra_PrintHexadecimalString | ( | char * | pString, |
unsigned | Sign[], | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Prints the hex unsigned into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 592 of file extraUtilFile.c.
void Extra_PrintHexReverse | ( | FILE * | pFile, |
unsigned * | pTruth, | ||
int | nVars | ||
) |
Definition at line 638 of file extraUtilFile.c.
void Extra_PrintSymbols | ( | FILE * | pFile, |
char | Char, | ||
int | nTimes, | ||
int | fPrintNewLine | ||
) |
Function*************************************************************
Synopsis [Returns the composite name of the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 668 of file extraUtilFile.c.
unsigned Extra_ReadBinary | ( | char * | Buffer | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 470 of file extraUtilFile.c.
int Extra_ReadHex | ( | unsigned | Sign[], |
char * | pString, | ||
int | nDigits | ||
) |
Function*************************************************************
Synopsis [Reads the hex unsigned into the bit-string.]
Description []
SideEffects []
SeeAlso []
Definition at line 523 of file extraUtilFile.c.
int Extra_ReadHexadecimal | ( | unsigned | Sign[], |
char * | pString, | ||
int | nVars | ||
) |
Definition at line 540 of file extraUtilFile.c.
char* Extra_StringAppend | ( | char * | pStrGiven, |
char * | pStrAdd | ||
) |
Function*************************************************************
Synopsis [Appends the string.]
Description [Assumes that the given string (pStrGiven) has been allocated before using malloc(). The additional string has not been allocated. Allocs more root, appends the additional part, frees the old given string.]
SideEffects []
SeeAlso []
Definition at line 690 of file extraUtilFile.c.
void Extra_StringClean | ( | char * | pStrGiven, |
char * | pCharKeep | ||
) |
Function*************************************************************
Synopsis [Only keep characters belonging to the second string.]
Description []
SideEffects []
SeeAlso []
Definition at line 715 of file extraUtilFile.c.
Function*************************************************************
Synopsis [String comparison procedure.]
Description []
SideEffects []
SeeAlso []
Definition at line 741 of file extraUtilFile.c.
char* Extra_TimeStamp | ( | ) |
Function*************************************************************
Synopsis [Returns the time stamp.]
Description [The file should be closed.]
SideEffects []
SeeAlso []
Definition at line 446 of file extraUtilFile.c.