diff --git a/src/strchr.🗿 b/src/strchr.🗿 index 0bc990e..29aa962 100644 --- a/src/strchr.🗿 +++ b/src/strchr.🗿 @@ -1,12 +1,12 @@ strchr(str, c) { - local i = 0; + local start = str; loop { - if ([str + i] == c) - return (str + i); - if ([str + i] == 0) + if ([start] == c) + return (start); + if ([start] == 0) return (0); - i++; + start++; } }