Changeset 95767 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Jul 20, 2022 7:40:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strpbrk.cpp
r93115 r95767 37 37 * @returns 38 38 */ 39 #ifdef _MSC_VER 39 #ifdef IPRT_NO_CRT 40 char *strpbrk(const char *pszStr, const char *pszBreakChars) 41 #elif defined(_MSC_VER) 40 42 # if _MSC_VER >= 1400 41 _CRTIMP __checkReturn _CONST_RETURN char * __cdecl strpbrk(__in_z const char *pszStr, __in_z const char *psz Chars)43 _CRTIMP __checkReturn _CONST_RETURN char * __cdecl strpbrk(__in_z const char *pszStr, __in_z const char *pszBreakChars) 42 44 # else 43 _CRTIMP char * __cdecl strpbrk(const char *pszStr, const char *psz Chars)45 _CRTIMP char * __cdecl strpbrk(const char *pszStr, const char *pszBreakChars) 44 46 # endif 45 47 #elif defined(__WATCOMC__) 46 _WCRTLINK char *std::strpbrk(const char *pszStr, const char *psz Chars)48 _WCRTLINK char *std::strpbrk(const char *pszStr, const char *pszBreakChars) 47 49 #else 48 char *strpbrk(const char *pszStr, const char *psz Chars)50 char *strpbrk(const char *pszStr, const char *pszBreakChars) 49 51 # if defined(__THROW) && !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2) 50 52 __THROW … … 55 57 while ((chCur = *pszStr++) != '\0') 56 58 { 57 int ch ;58 const char *psz = psz Chars;59 while ((ch = *psz++) != '\0')60 if (ch == chCur)59 int chBreak; 60 const char *psz = pszBreakChars; 61 while ((chBreak = *psz++) != '\0') 62 if (chBreak == chCur) 61 63 return (char *)(pszStr - 1); 62 64
Note:
See TracChangeset
for help on using the changeset viewer.