index(3) — Linux manual page

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | STANDARDS | HISTORY | SEE ALSO

index(3)                Library Functions Manual                index(3)

NAME         top

       index, rindex - locate character in string

LIBRARY         top

       Standard C library (libc, -lc)

SYNOPSIS         top

       #include <strings.h>

       [[deprecated]] char *index(const char *s, int c);
       [[deprecated]] char *rindex(const char *s, int c);

DESCRIPTION         top

       index() is identical to strchr(3).

       rindex() is identical to strrchr(3).

       Use strchr(3) and strrchr(3) instead of these functions.

STANDARDS         top

       None.

HISTORY         top

       4.3BSD; marked as LEGACY in POSIX.1-2001.  Removed in
       POSIX.1-2008, recommending strchr(3) and strrchr(3) instead.

SEE ALSO         top

       strchr(3), strrchr(3)

Linux man-pages (unreleased)     (date)                         index(3)