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

KHLP_DECL ( int   ) 

Checks if this is only a filename or if it contains any kind of drive, directory, or server specs.

Returns:
1 if this is a filename only.

0 of it's isn't only a filename.

Parameters:
pszFilename The filename to parse.

Definition at line 46 of file kHlpIsFilenameOnly.c.

{
    for (;;)
    {
        const char ch = *pszFilename++;
#if K_OS == K_OS_OS2 || K_OS == K_OS_WINDOWS
        if (ch == '/' || ch == '\\' || ch == ':')
#else
        if (ch == '/')
#endif
            return 0;
        if (!ch)
            return 1;
    }
}


Generated by  Doxygen 1.6.0   Back to index