Mercurial > hg > CbC > CbC_gcc
comparison libiberty/rindex.c @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 /* Stub implementation of (obsolete) rindex(). */ | |
2 | |
3 /* | |
4 | |
5 @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c}) | |
6 | |
7 Returns a pointer to the last occurrence of the character @var{c} in | |
8 the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is | |
9 deprecated in new programs in favor of @code{strrchr}. | |
10 | |
11 @end deftypefn | |
12 | |
13 */ | |
14 | |
15 extern char *strrchr (const char *, int); | |
16 | |
17 char * | |
18 rindex (const char *s, int c) | |
19 { | |
20 return strrchr (s, c); | |
21 } |