xref: /llvm-project/libc/src/string/strchrnul.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1bc2b1614SCaslyn Tonelli //===-- Implementation of strchrnul --------------------------------------===//
2bc2b1614SCaslyn Tonelli //
3bc2b1614SCaslyn Tonelli // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4bc2b1614SCaslyn Tonelli // See https://llvm.org/LICENSE.txt for license information.
5bc2b1614SCaslyn Tonelli // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6bc2b1614SCaslyn Tonelli //
7bc2b1614SCaslyn Tonelli //===----------------------------------------------------------------------===//
8bc2b1614SCaslyn Tonelli 
9bc2b1614SCaslyn Tonelli #include "src/string/strchrnul.h"
10*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
11bc2b1614SCaslyn Tonelli #include "src/string/string_utils.h"
12bc2b1614SCaslyn Tonelli 
13bc2b1614SCaslyn Tonelli #include "src/__support/common.h"
14bc2b1614SCaslyn Tonelli 
15*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
16bc2b1614SCaslyn Tonelli 
17bc2b1614SCaslyn Tonelli LLVM_LIBC_FUNCTION(char *, strchrnul, (const char *src, int c)) {
1882ca29ceSAlex Brachet   return internal::strchr_implementation<false>(src, c);
19bc2b1614SCaslyn Tonelli }
20bc2b1614SCaslyn Tonelli 
21*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
22