1 .\" Copyright 2022 Alejandro Colomar <alx@kernel.org>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH index 3 (date) "Linux man-pages (unreleased)"
7 index, rindex \- locate character in string
10 .RI ( libc ", " \-lc )
13 .B #include <strings.h>
15 .BI "[[deprecated]] char *index(const char *" s ", int " c );
16 .BI "[[deprecated]] char *rindex(const char *" s ", int " c );
31 instead of these functions.
35 4.3BSD; marked as LEGACY in POSIX.1-2001.
36 Removed in POSIX.1-2008,