librnr/path.c
PathIter_T *SearchPathIterNew(const char *sSearchPath)
{
  PathIter_T  *pIter = NEW(PathIter_T);

  if( (pIter->m_pSearchPaths = NewSearchPathDList(sSearchPath)) == NULL )
  {
    LOGERROR("NewSearchPathDlist() failed");
    SearchPathIterDelete(pIter);
    return NULL;
  }

  pIter->m_sFileCanonical = NULL;
  pIter->m_nFileLen       = 0;
  pIter->m_sFilePath      = NULL;
  pIter->m_bIsEos         = false;

  return pIter;
}
/*!
 * \brief Allocates and initilized a new search path iterator.
 *
 * This iterator can be reused multiple times with different search files by
 * calling SearchPathIterFirst(). SearchPathIterDelete() must be called when
 * finished with the iterator to clean up any allocated memory.
 *
 * \param sSearchPath   Search path of form: path [path_sep path...]
 *
 * \return
 *  Returns pointer to search path iterator on success, NULL on error
 */
\brief Allocates and initilized a new search path iterator.
This iterator can be reused multiple times with different search files by
calling SearchPathIterFirst(). SearchPathIterDelete() must be called when
finished with the iterator to clean up any allocated memory.



\return
Returns pointer to search path iterator on success, NULL on error
\ brief Allocates and initilized a new search path iterator . This iterator can be reused multiple times with different search files by calling SearchPathIterFirst () . SearchPathIterDelete () must be called when finished with the iterator to clean up any allocated memory . \ return Returns pointer to search path iterator on success NULL on error
PathIter_T *SearchPathIterNew(const char *sSearchPath)
{
  PathIter_T  *pIter = NEW(PathIter_T);
  if( (pIter->m_pSearchPaths = NewSearchPathDList(sSearchPath)) == NULL )
  {
    LOGERROR("NewSearchPathDlist() failed");
    SearchPathIterDelete(pIter);
    return NULL;
  }
  pIter->m_sFileCanonical = NULL;
  pIter->m_nFileLen       = 0;
  pIter->m_sFilePath      = NULL;
  pIter->m_bIsEos         = false;
  return pIter;
}
PathIter_T * SearchPathIterNew ( const char * sSearchPath ) { PathIter_T * pIter = NEW ( PathIter_T ) ; if ( ( pIter -> m_pSearchPaths = NewSearchPathDList ( sSearchPath ) ) == NULL ) { LOGERROR ( " " ) ; SearchPathIterDelete ( pIter ) ; return NULL ; } pIter -> m_sFileCanonical = NULL ; pIter -> m_nFileLen = 0 ; pIter -> m_sFilePath = NULL ; pIter -> m_bIsEos = false ; return pIter ; }
\brief Allocates and initilized a new search path iterator.
\ brief Allocates and initilized a new search path iterator .