aboutsummaryrefslogtreecommitdiffstats
path: root/src/memrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memrchr.c')
-rw-r--r--src/memrchr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/memrchr.c b/src/memrchr.c
index ba788f5..1f37870 100644
--- a/src/memrchr.c
+++ b/src/memrchr.c
@@ -26,10 +26,9 @@ memrchr(s, c, n)
int c;
size_t n;
{
- const unsigned char *cp;
-
if (n != 0) {
- cp = (unsigned char *)s + n;
+ const unsigned char *cp;
+ cp = (unsigned char *)s + n;
do {
if (*(--cp) == (unsigned char)c)
return((void *)cp);
Un proyecto texto-plano.xyz