From 6c87311532b878a27f368a17051dc3945cd01721 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Oct 2018 10:32:44 +0200 Subject: Add man pages some str-functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- strchrnul.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strchrnul.c') 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; } -- cgit v1.2.3-70-g09d2