diff options
Diffstat (limited to 'src/libstddjb/str_rchr.c')
-rw-r--r-- | src/libstddjb/str_rchr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstddjb/str_rchr.c b/src/libstddjb/str_rchr.c index c82ee69..76e8e4e 100644 --- a/src/libstddjb/str_rchr.c +++ b/src/libstddjb/str_rchr.c @@ -1,12 +1,11 @@ /* ISC license. */ -#include <sys/types.h> #include <string.h> #include <skalibs/bytestr.h> -size_t str_rchr (register char const *s, int c) +size_t str_rchr (char const *s, int c) { - register char *p = strrchr(s, c) ; + char *p = strrchr(s, c) ; return p ? p - s : strlen(s) ; } |