Added several new APIs.

This commit is contained in:
Alan Mishchenko 2012-03-31 16:33:22 -07:00
parent 9520736621
commit 993c2027d8
2 changed files with 19 additions and 0 deletions

View File

@ -185,6 +185,7 @@ char * Extra_FileNameGenericAppend( char * pBase, char * pSuffix )
{
static char Buffer[1000];
char * pDot;
assert( strlen(pBase) + strlen(pSuffix) < 1000 );
strcpy( Buffer, pBase );
if ( (pDot = strrchr( Buffer, '.' )) )
*pDot = 0;

View File

@ -246,6 +246,24 @@ static inline Vec_Int_t * Vec_IntDupArray( Vec_Int_t * pVec )
return p;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static inline void Vec_IntErase( Vec_Int_t * p )
{
p->pArray = NULL;
p->nSize = 0;
p->nCap = 0;
}
/**Function*************************************************************
Synopsis []