projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* modules/extensions (License): Change to LGPL.
[gnulib.git]
/
lib
/
strchrnul.c
diff --git
a/lib/strchrnul.c
b/lib/strchrnul.c
index
694e24a
..
be85312
100644
(file)
--- a/
lib/strchrnul.c
+++ b/
lib/strchrnul.c
@@
-20,12
+20,11
@@
/* Find the first occurrence of C in S or the final NUL byte. */
char *
/* 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++;
s++;
- return (char*) s;
+ return (char
*) s;
}
}