Added a few more routines required to port FLAIM to FTK.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@497 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -7588,3 +7588,32 @@ Exit:
|
||||
return( rc);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
RCODE FLMAPI f_strdup(
|
||||
const char * pszSrc,
|
||||
char ** ppszDup)
|
||||
{
|
||||
RCODE rc = NE_FLM_OK;
|
||||
char * pszDup = NULL;
|
||||
|
||||
if( RC_BAD( rc = f_alloc( f_strlen( pszSrc) + 1, &pszDup)))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
f_strcpy( pszDup, pszSrc);
|
||||
*ppszDup = pszDup;
|
||||
pszDup = NULL;
|
||||
|
||||
Exit:
|
||||
|
||||
if( pszDup)
|
||||
{
|
||||
f_free( &pszDup);
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user