summaryrefslogtreecommitdiff
path: root/lib/string/rindex.c
blob: 897e19e57bf1aa5b352f9910af0f737c3c5d28c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: MIT */
/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */

#define _BSD_SOURCE
#include <string.h>
#include <strings.h>

char *rindex(const char *s, int c)
{
	return strrchr(s, c);
}