Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

static const char* name ( const char *  pszPath  )  [static]

Find where the filename starts in the given path.

Definition at line 42 of file biossums.c.

Referenced by audioLoadAlsaLib(), audioLoadPulseLib(), VBoxGlobal::COMPortNames(), DECLCALLBACK(), doUsage(), fatal(), handleList(), handleModifyVM(), handleShowHardDiskInfo(), tmTransactionManager::HandleTransaction(), QIHotKeyEdit::keyName(), USBController::loadSettings(), VBoxGlobal::LPTPortNames(), main(), VBoxGlobalSettings::publicProperty(), VBoxGlobalSettings::save(), VBoxGlobal::toCOMPortNumbers(), VBoxGlobal::toLPTPortNumbers(), VBoxConsoleWnd::updateAppearanceOf(), and UpdateTitlebar().

    const char *psz = strrchr(pszPath, '/');
#if defined(_MSC_VER) || defined(__OS2__)
    const char *psz2 = strrchr(pszPath, '\\');
    if (!psz2)
        psz2 = strrchr(pszPath, ':');
    if (psz2 && (!psz || psz2 > psz))
        psz = psz2;
    return psz ? psz + 1 : pszPath;

Generated by  Doxygen 1.6.0   Back to index