[libc-commits] [libc] [libc] Implemented wcspbrk (PR #142040)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri May 30 11:11:10 PDT 2025
================
@@ -13,13 +13,20 @@
namespace LIBC_NAMESPACE_DECL {
+bool contains_char(const wchar_t *str, wchar_t target) {
+ for (; *str != 0; str++)
----------------
michaelrj-google wrote:
since this is a wide char null byte this should be `L'\0'` instead of `0`.
https://github.com/llvm/llvm-project/pull/142040
More information about the libc-commits
mailing list