projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_1c_2 release
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
rindex.c
/* @(#)rindex.c 4.1 (Berkeley) 12/21/80 */
/*
* Return the ptr in sp at which the character c last
* appears; NULL if not found
*/
#define NULL 0
char
*
rindex
(
sp
,
c
)
register
char
*
sp
,
c
;
{
register
char
*
r
;
r
=
NULL
;
do
{
if
(*
sp
==
c
)
r
=
sp
;
}
while
(*
sp
++);
return
(
r
);
}