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:
ahodgkinson
2006-06-01 19:42:56 +00:00
parent 488ad60c0d
commit 73aa65fabd
10 changed files with 1660 additions and 104 deletions

View File

@@ -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);
}