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:
@@ -1625,6 +1625,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( GetLastError(), NE_FLM_IO_PATH_NOT_FOUND);
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
Exit:
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
#endif // FLM_WIN
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user