diff options
Diffstat (limited to 'zp/source/any/str/wstrsrh.cc')
-rw-r--r-- | zp/source/any/str/wstrsrh.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zp/source/any/str/wstrsrh.cc b/zp/source/any/str/wstrsrh.cc new file mode 100644 index 0000000..068b27a --- /dev/null +++ b/zp/source/any/str/wstrsrh.cc @@ -0,0 +1,11 @@ +/* + Copyright 2022-2023 Gabriel Jensen. + This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. + If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0>. +*/ + +#include <zp/str> + +extern "C" zp_nthrw auto zp_wstrsrh(::zp::wchr const * const str,::zp::wchr const chr) -> ::zp::wchr * { + return const_cast<::zp::wchr *>(::zp::strsrh(str,chr)); +} |