Added f_getcwd().

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@450 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-05-24 19:26:29 +00:00
parent d162adb63a
commit a3fda8265f
5 changed files with 56 additions and 0 deletions

View File

@@ -1598,6 +1598,26 @@ Exit:
return( rc);
}
/**********************************************************************
Desc:
**********************************************************************/
RCODE FLMAPI f_getcwd(
char * pszDir)
{
RCODE rc = NE_FLM_OK;
if( getcwd( pszDir, F_PATH_MAX_SIZE) == NULL)
{
*pszDir = 0;
rc = f_mapPlatformError( errno, NE_FLM_IO_PATH_NOT_FOUND);
goto Exit;
}
Exit:
return( rc);
}
#endif // FLM_UNIX
#if defined( FLM_WATCOM_NLM)