Path: blob/main/system/lib/llvm-libc/src/strings/rindex.cpp
6175 views
//===-- Implementation of rindex ------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "src/strings/rindex.h"910#include "src/__support/common.h"11#include "src/__support/macros/config.h"12#include "src/__support/macros/null_check.h"13#include "src/string/string_utils.h"1415namespace LIBC_NAMESPACE_DECL {1617LLVM_LIBC_FUNCTION(char *, rindex, (const char *src, int c)) {18LIBC_CRASH_ON_NULLPTR(src);19return internal::strrchr_implementation(src, c);20}2122} // namespace LIBC_NAMESPACE_DECL232425