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

char* strpbrk ( const char *  pszStr,
const char *  pszChars 
)

Find the first occurrence of a character in pszChars in pszStr.

Returns:

Definition at line 50 of file strpbrk.cpp.

References NULL.

Referenced by RTDECL(), and rtFsIsRoot().

{
    int chCur;
    while ((chCur = *pszStr++) != '\0')
    {
        int ch;
        const char *psz = pszChars;
        while ((ch = *psz++) != '\0')
            if (ch == chCur)
                return (char *)(pszStr - 1);

    }
    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index