1RINDEX(P) POSIX Programmer's Manual RINDEX(P)
2
3
4
6 rindex - character string operations (LEGACY)
7
9 #include <strings.h>
10
11 char *rindex(const char *s, int c);
12
13
15 The rindex() function shall be equivalent to strrchr() .
16
18 Refer to strrchr() .
19
21 Refer to strrchr() .
22
23 The following sections are informative.
24
26 None.
27
29 The strrchr() function is preferred over this function.
30
31 For maximum portability, it is recommended to replace the function call
32 to rindex() as follows:
33
34
35 #define rindex(a,b) strrchr((a),(b))
36
38 None.
39
41 This function may be withdrawn in a future version.
42
44 strrchr() , the Base Definitions volume of IEEE Std 1003.1-2001,
45 <strings.h>
46
48 Portions of this text are reprinted and reproduced in electronic form
49 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
50 -- Portable Operating System Interface (POSIX), The Open Group Base
51 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
52 Electrical and Electronics Engineers, Inc and The Open Group. In the
53 event of any discrepancy between this version and the original IEEE and
54 The Open Group Standard, the original IEEE and The Open Group Standard
55 is the referee document. The original Standard can be obtained online
56 at http://www.opengroup.org/unix/online.html .
57
58
59
60IEEE/The Open Group 2003 RINDEX(P)