diff options
Diffstat (limited to 'strchrnul.c')
-rw-r--r-- | strchrnul.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/strchrnul.c b/strchrnul.c index 77634c0..3ec6a0f 100644 --- a/strchrnul.c +++ b/strchrnul.c @@ -4,10 +4,10 @@ char * -libsimple_strchrnul(const char *s_, int c) +libsimple_strchrnul(const char *s_, char c_) { - char *s = *(char **)(void *)&s_; - for (; *s && (int)*s != c; s++); + char *s = *(char **)(void *)&s_, c = (char)c_; + for (; *s && *s != c; s++); return s; } |