minix/lib/libc/other/rindex.c

12 lines
236 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
/* rindex - find last occurrence of a character in a string */
#include <string.h>
char *rindex(s, charwanted) /* found char, or NULL if none */
_CONST char *s;
char charwanted;
{
return(strrchr(s, charwanted));
}