From 6d1f3da2893229af9aa98db5d4b3130d778cf66e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 16 Feb 2017 15:22:30 -0600 Subject: [PATCH] C library: Add support for rindex(). --- include/string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/string.h b/include/string.h index 295a7e8af3..4d698a2099 100644 --- a/include/string.h +++ b/include/string.h @@ -55,6 +55,8 @@ #define bcopy(b1,b2,len) (void)memmove(b2,b1,len) +#define rindex(s,c) strrchr(s,c) + /**************************************************************************** * Public Function Prototypes ****************************************************************************/