|
|
1.1 root 1:
2:
3: strrchr() String Function strrchr()
4:
5:
6:
7:
8: Search for rightmost occurrence of a character in a string
9:
10: #include <string.h>
11: cchhaarr *ssttrrrrcchhrr(_s_t_r_i_n_g, _c_h_a_r_a_c_t_e_r);
12: cchhaarr *_s_t_r_i_n_g; iinntt _c_h_a_r_a_c_t_e_r;
13:
14: strrchr looks for the last, or rightmost, occurrence of character
15: within string. character is declared to be an int, but is
16: handled within the function as a char. Another way to describe
17: this function is to say that it performs a reverse search for a
18: character in a string. It is equivalent to the COHERENT function
19: rriinnddeexx.
20:
21: strrchr returns a pointer to the rightmost occurrence of charac-
22: ter, or NULL if character could not be found within string.
23:
24: ***** See Also *****
25:
26: rindex(), string functions, string.h
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.