/* Find the first occurrence of C in S or the final NUL byte. */
char *
-strchrnul (s, c_in)
- const char *s;
- int c_in;
+strchrnul (const char *s, int c_in)
{
- while (*s && (*s != c_in))
+ char c = c_in;
+ while (*s && (*s != c))
s++;
- return (char*) s;
+ return (char *) s;
}