diff options
author | Mattias Andrée <maandree@kth.se> | 2018-10-21 10:32:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-10-21 10:32:44 +0200 |
commit | 6c87311532b878a27f368a17051dc3945cd01721 (patch) | |
tree | fd50d099c13a1401ec0a5610b750277e9f6065c4 /strchrnul.c | |
parent | Add mempsetelem and memsetelem and add fix and tests for memelem and memrelem (diff) | |
download | libsimple-6c87311532b878a27f368a17051dc3945cd01721.tar.gz libsimple-6c87311532b878a27f368a17051dc3945cd01721.tar.bz2 libsimple-6c87311532b878a27f368a17051dc3945cd01721.tar.xz |
Add man pages some str-functions
Signed-off-by: Mattias Andrée <maandree@kth.se>
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; } |