Hello. With CodeBlocks 10.05 and XP i have the report ...
-----------------------------------
'bool StringUtils::strBlngsTo(const std::string&, const std::string&)':| 'strpbrk' was not declared in this scope|
||=== Build finished: 1 errors, 0 warnings ===|
-----------------------------
But strpbrk returns a pointer to the first occurrence in str1 of any of the characters that are part of str2, or a null pointer if there are no matches.
Why not work in CB 10.05, and wcspbrk works? This is the question.
Why not work in CB 10.05, and wcspbrk works? This is the question.
Because strpbrk is part of the C++ standard (defined in cstring) and wcspbrk is not. Therefore, wcspbrk is declared in some other header file that you already included directly or indirectly somewhere.